r15031 by jghali - #9073 (first round) : fix incorrect object being selected when clicking on item in bookmark palette

scribus-commit scribus-commit at lists.scribus.net
Sat May 1 20:30:20 CEST 2010


Revision: 15031
Author: jghali
Date: 2010-05-01T18:20:34.741882Z
Commit message: #9073 (first round) : fix incorrect object being selected when clicking on item in bookmark palette

Changeset: 
M  /trunk/Scribus/scribus/ui/bookmwin.cpp
M  /trunk/Scribus/scribus/ui/bookmwin.h

Diffs:
Index: scribus/ui/bookmwin.h
===================================================================
--- scribus/ui/bookmwin.h	(revision 15030)
+++ scribus/ui/bookmwin.h	(revision 15031)
@@ -106,8 +106,8 @@
 protected:
 	void dropEvent(QDropEvent *e);
 
-	private slots:
-		void setPageItem(QTreeWidgetItem * old, QTreeWidgetItem * newItem);
+private slots:
+	void setPageItem(QTreeWidgetItem * current, QTreeWidgetItem * previous);
 };
 
 #endif
Index: scribus/ui/bookmwin.cpp
===================================================================
--- scribus/ui/bookmwin.cpp	(revision 15030)
+++ scribus/ui/bookmwin.cpp	(revision 15031)
@@ -153,9 +153,9 @@
 	Last = NrItems;
 }
 
-void BookMView::setPageItem(QTreeWidgetItem * /*old*/, QTreeWidgetItem * newItem)
+void BookMView::setPageItem(QTreeWidgetItem * current, QTreeWidgetItem * /*previous*/)
 {
-	BookMItem * i = dynamic_cast<BookMItem*>(newItem);
+	BookMItem * i = dynamic_cast<BookMItem*>(current);
 	// something weird here at 1st call...
 	if (i)
 		emit SelectElement(i->PageObject);




More information about the scribus-commit mailing list