MODIFIED: #1471 Oups, forgot these warning messages...

This commit is contained in:
dfighter1985 2012-11-20 04:54:09 +01:00
parent 805fda9799
commit 86a2e259e9

View file

@ -16,6 +16,7 @@
#include "new_widget_widget.h"
#include "widget_info_tree.h"
#include <qmessagebox.h>
namespace GUIEditor
{
@ -50,11 +51,21 @@ namespace GUIEditor
{
if( !checkNameField() )
{
QMessageBox::warning( this,
tr( "Adding a new widget" ),
tr( "The new widget's name is invalid!" ),
QMessageBox::Ok
);
return;
}
if( !checkNameDuplicate() )
{
QMessageBox::warning( this,
tr( "Adding a new widget" ),
tr( "That widget name already exists!" ),
QMessageBox::Ok
);
return;
}