r15030 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:20:21 CEST 2010


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

Changeset: 
M  /branches/Version135/Scribus/scribus/bookmwin.h
M  /branches/Version135/Scribus/scribus/bookmwin.cpp

Diffs:
Index: scribus/bookmwin.h
===================================================================
--- scribus/bookmwin.h	(revision 15029)
+++ scribus/bookmwin.h	(revision 15030)
@@ -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/bookmwin.cpp
===================================================================
--- scribus/bookmwin.cpp	(revision 15029)
+++ scribus/bookmwin.cpp	(revision 15030)
@@ -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