From 6e1254b6128c7bdbf57ff30978b9233390675890 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 20 Nov 2012 04:54:09 +0100 Subject: [PATCH] MODIFIED: #1471 Oups, forgot these warning messages... --HG-- branch : gsoc2012-gui-editor --- .../src/plugins/gui_editor/new_widget_widget.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/new_widget_widget.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/new_widget_widget.cpp index a641c4dc4..9d67bdd68 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/new_widget_widget.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/new_widget_widget.cpp @@ -16,6 +16,7 @@ #include "new_widget_widget.h" #include "widget_info_tree.h" +#include 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; }