From 5eb1b544a5c5447f33571c83fdf7319122a99ad4 Mon Sep 17 00:00:00 2001 From: san Date: Fri, 26 Nov 2010 12:55:05 +0000 Subject: [PATCH] Path selected with file open dialog firstly setted to text field and after that signal emitted. --- src/Qtx/QtxPathEdit.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxPathEdit.cxx b/src/Qtx/QtxPathEdit.cxx index 3a435a5e3..c524cbbe1 100644 --- a/src/Qtx/QtxPathEdit.cxx +++ b/src/Qtx/QtxPathEdit.cxx @@ -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(); -- 2.39.2