r21278 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon May 2 21:36:18 UTC 2016


Author: jghali
Date: Mon May  2 21:36:18 2016
New Revision: 21278

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21278
Log:
fix incorrect usage of signal connection/disconnection in paragraph effect properties widget

Modified:
    trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp

Modified: trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21278&path=/trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertywidget_pareffect.cpp	Mon May  2 21:36:18 2016
@@ -5,8 +5,9 @@
 for which a new license (GPL+exception) is in place.
 */
 
+#include <QSignalBlocker>
+
 #include "propertywidget_pareffect.h"
-
 
 #include "appmodehelper.h"
 #include "appmodes.h"
@@ -205,7 +206,19 @@
 		enableParEffect(false);
 		return;
 	}
-	disconnectSignals ();
+
+	QSignalBlocker blocker1(peCombo);
+	QSignalBlocker blocker2(dropCapLines);
+	QSignalBlocker blocker3(bulletStrEdit);
+	QSignalBlocker blocker4(numComboBox);
+	QSignalBlocker blocker5(numLevelSpin);
+	QSignalBlocker blocker6(numFormatCombo);
+	QSignalBlocker blocker7(numPrefix);
+	QSignalBlocker blocker8(numSuffix);
+	QSignalBlocker blocker9(numStart);
+	QSignalBlocker blockerA(peOffset);
+	QSignalBlocker blockerB(peIndent);
+	QSignalBlocker blockerC(peCharStyleCombo);
 
 	bool enablePE = true;
 	if (newPStyle.hasDropCap())
@@ -251,7 +264,6 @@
 	showCharStyle(newPStyle.peCharStyleName());
 
 	enableParEffect(enablePE);
-	connectSignals ();
 }
 
 void PropertyWidget_ParEffect::connectSignals()




More information about the scribus-commit mailing list