r18437 by jghali - #11714: Cannot Rename Groups from Properties

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 2 21:07:13 UTC 2013


Author: jghali
Date: Mon Sep  2 21:07:13 2013
New Revision: 18437

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18437
Log:
#11714: Cannot Rename Groups from Properties

Modified:
    branches/Version14x/Scribus/scribus/scribusdoc.cpp

Modified: branches/Version14x/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18437&path=/branches/Version14x/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribusdoc.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribusdoc.cpp Mon Sep  2 21:07:13 2013
@@ -10615,6 +10615,11 @@
 	}
 
 	renumberItemsInListOrder();
+
+	// We delay selection signals here so that currItem->Groups
+	// is updated before signals are sent. Correct update of some
+	// PP widgets depend on that.
+	itemSelection->delaySignalsOn();
 	itemSelection->prependItem(groupItem);
 	selectedItemCount=itemSelection->count();
 	SimpleState *ss = new SimpleState(Um::Group, tooltip);
@@ -10627,6 +10632,8 @@
 		currItem->Groups.push(GroupCounter);
 		ss->set(QString("item%1").arg(a), currItem->uniqueNr);
 	}
+	itemSelection->delaySignalsOff();
+
 	GroupCounter++;
 	regionsChanged()->update(QRectF(gx-5, gy-5, gw+10, gh+10));
 	emit docChanged();




More information about the scribus-commit mailing list