r19311 by craig - Block signals in page selector instead of disconnecting

scribus-commit scribus-commit at lists.scribus.net
Thu Jul 3 19:15:10 UTC 2014


Author: craig
Date: Thu Jul  3 19:15:10 2014
New Revision: 19311

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19311
Log:
Block signals in page selector instead of disconnecting

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

Modified: trunk/Scribus/scribus/ui/pageselector.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19311&path=/trunk/Scribus/scribus/ui/pageselector.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/pageselector.cpp (original)
+++ trunk/Scribus/scribus/ui/pageselector.cpp Thu Jul  3 19:15:10 2014
@@ -231,8 +231,8 @@
 	m_pageCombo->setToolTip( tr("Select the current page") );
 	PageCountString =  tr(" of %1", "number of pages in document");
 	pageCountLabel->setText(PageCountString.arg(m_lastPage));
-	disconnect( m_pageCombo, SIGNAL( activated(int) ), this, SLOT( GotoPgE(int) ) );
+	bool signalsBlocked=m_pageCombo->blockSignals(true);
 	setCurrentComboItem(m_pageCombo, QString::number(m_currentPage));
-	connect( m_pageCombo, SIGNAL( activated(int) ), this, SLOT( GotoPgE(int) ) );
-}
-
+	m_pageCombo->blockSignals(signalsBlocked);
+}
+




More information about the scribus-commit mailing list