]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Path selected with file open dialog firstly setted to text field and after that signa...
authorsan <san@opencascade.com>
Fri, 26 Nov 2010 12:55:05 +0000 (12:55 +0000)
committersan <san@opencascade.com>
Fri, 26 Nov 2010 12:55:05 +0000 (12:55 +0000)
src/Qtx/QtxPathEdit.cxx

index 3a435a5e32c995b69ab9c53aa0659636ad1530e2..c524cbbe17b51b81d4d71f147c64643787a69b99 100644 (file)
@@ -223,8 +223,11 @@ void QtxPathEdit::onBrowse( bool /*on*/ )
 
   if ( !path.isEmpty() ) {
     QString txt = QDir::convertSeparators( path );
-    emit pathSelected( txt );
+    bool block = myPath->signalsBlocked();
+    myPath->blockSignals( true );
     myPath->setText( txt );
+    myPath->blockSignals( block );
+    emit pathSelected( txt );
   }
 
   myPath->setFocus();