r21476 by jghali - prevent multiple connections from PageItem signals to doc slots (just to be sure)

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 29 19:37:06 UTC 2016


Author: jghali
Date: Sat Oct 29 19:37:06 2016
New Revision: 21476

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21476
Log:
prevent multiple connections from PageItem signals to doc slots (just to be sure)

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21476&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Sat Oct 29 19:37:06 2016
@@ -9945,9 +9945,9 @@
 	if (!m_Doc->m_Selection->primarySelectionIs(this))
 		return false;
 
-	connect(this, SIGNAL(frameType(int)), m_Doc->scMW(), SLOT(HaveNewSel()));
-	connect(this, SIGNAL(frameType(int)), m_Doc, SLOT(selectionChanged()));
-	connect(this, SIGNAL(textStyle(int)), m_Doc->scMW(), SLOT(setStyleEffects(int)));
+	connect(this, SIGNAL(frameType(int)), m_Doc->scMW(), SLOT(HaveNewSel()), Qt::UniqueConnection);
+	connect(this, SIGNAL(frameType(int)), m_Doc, SLOT(selectionChanged()), Qt::UniqueConnection);
+	connect(this, SIGNAL(textStyle(int)), m_Doc->scMW(), SLOT(setStyleEffects(int)), Qt::UniqueConnection);
 
 	return true;
 }




More information about the scribus-commit mailing list