mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
MODIFIED: #1471 Oups, forgot these warning messages...
This commit is contained in:
parent
805fda9799
commit
86a2e259e9
1 changed files with 11 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include "new_widget_widget.h"
|
#include "new_widget_widget.h"
|
||||||
#include "widget_info_tree.h"
|
#include "widget_info_tree.h"
|
||||||
|
#include <qmessagebox.h>
|
||||||
|
|
||||||
namespace GUIEditor
|
namespace GUIEditor
|
||||||
{
|
{
|
||||||
|
@ -50,11 +51,21 @@ namespace GUIEditor
|
||||||
{
|
{
|
||||||
if( !checkNameField() )
|
if( !checkNameField() )
|
||||||
{
|
{
|
||||||
|
QMessageBox::warning( this,
|
||||||
|
tr( "Adding a new widget" ),
|
||||||
|
tr( "The new widget's name is invalid!" ),
|
||||||
|
QMessageBox::Ok
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !checkNameDuplicate() )
|
if( !checkNameDuplicate() )
|
||||||
{
|
{
|
||||||
|
QMessageBox::warning( this,
|
||||||
|
tr( "Adding a new widget" ),
|
||||||
|
tr( "That widget name already exists!" ),
|
||||||
|
QMessageBox::Ok
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue