From a16d4dd93546895d758c9abb01c8ef97f73429b9 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 18 Sep 2014 15:16:32 +0000 Subject: [PATCH] Bug fix: load the folio list on the first page if the user added to the project git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3311 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetproject.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 0c2d71524..e58297c8a 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -1030,7 +1030,7 @@ void QETProject::readProjectXml() { // 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 @@ void QETProject::readDiagramsXml() { 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;