]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL11563: Naming Policy. Suppress renaming to blank names.
authorjfa <jfa@opencascade.com>
Mon, 20 Feb 2006 11:53:55 +0000 (11:53 +0000)
committerjfa <jfa@opencascade.com>
Mon, 20 Feb 2006 11:53:55 +0000 (11:53 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 3463c63733318f0ff5ed31199909802af83bd526..2c319404880d6b7577cb2afd15d9fcfdddddae5b 100644 (file)
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
 #include "SalomeApp_CheckFileDlg.h"
+#include "SalomeApp_ImportOperation.h"
+
 #include "LightApp_DataOwner.h"
 #include "LightApp_Preferences.h"
 #include "LightApp_VTKSelector.h"
 #include "LightApp_Operation.h"
 #include "LightApp_UpdateFlags.h"
-
-#include "SalomeApp_ImportOperation.h"
+#include "LightApp_NameDlg.h"
 
 #include <SVTK_ViewWindow.h>
 #include <SVTK_ViewModel.h>
 #include <qstring.h>
 #include <qwidget.h>
 #include <qaction.h>
-#include <qinputdialog.h>
 
 // BOOST Includes
 #include <boost/shared_ptr.hpp>
@@ -1762,10 +1762,8 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
           {
             aName = anAttr;
             QString newName = QString(aName->Value().c_str());
-           bool ok;
-           newName = QInputDialog::getText( tr( "Rename" ), tr( "Enter new name:" ), QLineEdit::Normal,
-                                             newName, &ok, desktop() );
-            if ( ok && !newName.isEmpty() )
+            newName = LightApp_NameDlg::getName(desktop(), newName);
+            if ( !newName.isEmpty() )
             {
               //old source: aStudy->renameIObject( IObject, newName );
              aName->SetValue( newName.latin1() );