[qet] [1346] Fixed a bug causing new diagrams to be placed after elements collection in the elements panel .

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1346
Author:   xavier
Date:     2011-10-01 21:17:11 +0200 (Sat, 01 Oct 2011)
Log Message:
-----------
Fixed a bug causing new diagrams to be placed after elements collection in the elements panel.

Modified Paths:
--------------
    branches/0.3/sources/elementspanel.cpp

Modified: branches/0.3/sources/elementspanel.cpp
===================================================================
--- branches/0.3/sources/elementspanel.cpp	2011-10-01 17:11:54 UTC (rev 1345)
+++ branches/0.3/sources/elementspanel.cpp	2011-10-01 19:17:11 UTC (rev 1346)
@@ -623,7 +623,8 @@
 	if (last_diagram) {
 		qtwi_diagram = new QTreeWidgetItem(qtwi_parent, last_diagram);
 	} else {
-		qtwi_diagram = new QTreeWidgetItem(qtwi_parent);
+		qtwi_diagram = new QTreeWidgetItem();
+		qtwi_parent -> insertChild(0, qtwi_diagram);
 	}
 	qtwi_diagram -> setText(0, final_name);
 	qtwi_diagram -> setIcon(0, QET::Icons::Diagram);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/