r23946 by jghali - Fix incorrect use of blockSignals() in ScribusMainWindow's slotSetCurrentPage()

scribus-commit scribus-commit at lists.scribus.net
Mon Jul 27 19:36:40 UTC 2020


Author: jghali
Date: Mon Jul 27 19:36:40 2020
New Revision: 23946

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23946
Log:
Fix incorrect use of blockSignals() in ScribusMainWindow's slotSetCurrentPage()

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23946&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Mon Jul 27 19:36:40 2020
@@ -8370,11 +8370,11 @@
 {
 	if (scriptIsRunning())
 		return;
-	pageSelector->blockSignals(true);
+	bool blocked = pageSelector->blockSignals(true);
 	pageSelector->setMaximum(doc->masterPageMode() ? 1 : doc->Pages->count());
 	if ((!doc->isLoading()) && (!doc->masterPageMode()))
 		pageSelector->setGUIForPage(Seite);
-	pageSelector->blockSignals(false);
+	pageSelector->blockSignals(blocked);
 }
 
 void ScribusMainWindow::setCurrentPage(int p)




More information about the scribus-commit mailing list