[qet] [3311] Bug fix: load the folio list on the first page if the user added to the project

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


Revision: 3311
Author:   scorpio810
Date:     2014-09-18 17:16:32 +0200 (Thu, 18 Sep 2014)
Log Message:
-----------
Bug fix: load the folio list on the first page if the user added to the project

Modified Paths:
--------------
    trunk/sources/qetproject.cpp

Modified: trunk/sources/qetproject.cpp
===================================================================
--- trunk/sources/qetproject.cpp	2014-09-16 22:38:41 UTC (rev 3310)
+++ trunk/sources/qetproject.cpp	2014-09-18 15:16:32 UTC (rev 3311)
@@ -1030,7 +1030,7 @@
 		// if there is an attribute for folioSheetQuantity, then set it accordingly.
 		// If not, then the value remains at the initial value of zero.
 		if (root_elmt.hasAttribute("folioSheetQuantity"))
-			setFolioSheetsQuantity(root_elmt.attribute("folioSheetQuantity","0").toInt());
+			addNewDiagramFolioList();
 
 		// mode d'ouverture normal
 		if (root_elmt.hasAttribute("version")) {
@@ -1128,13 +1128,6 @@
 		d->initElementsLinks();
 	}
 
-	// If the folio sheets quantity is non-zero, then add the folio sheets
-	if (getFolioSheetsQuantity()) {
-		setFolioSheetsQuantity(0);
-		int diagCount = diagrams().size();
-		for (int i = 0; i <= diagCount/58; i++)
-			addNewDiagramFolioList();
-	}
 
 	//delete dialog object
 	delete dlgWaiting;


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