r18474 by jghali - restore properly signal blocking state in util.cpp setCurrentComboItem()

scribus-commit scribus-commit at lists.scribus.net
Thu Sep 12 21:07:27 UTC 2013


Author: jghali
Date: Thu Sep 12 21:07:27 2013
New Revision: 18474

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18474
Log:
restore properly signal blocking state in util.cpp setCurrentComboItem()

Modified:
    trunk/Scribus/scribus/util.cpp

Modified: trunk/Scribus/scribus/util.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18474&path=/trunk/Scribus/scribus/util.cpp
==============================================================================
--- trunk/Scribus/scribus/util.cpp (original)
+++ trunk/Scribus/scribus/util.cpp Thu Sep 12 21:07:27 2013
@@ -787,11 +787,11 @@
 
 void setCurrentComboItem(QComboBox *box, QString text)
 {
-	box->blockSignals(true);
+	bool sigBlocked = box->blockSignals(true);
 	int ind = box->findText(text);
 	if (ind > -1)
 		box->setCurrentIndex(ind);
-	box->blockSignals(false);
+	box->blockSignals(sigBlocked);
 }
 
 QString readAdobeUniCodeString(QDataStream &s)




More information about the scribus-commit mailing list