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
This commit is contained in:
scorpio810
2014-09-18 15:16:32 +00:00
parent 88e49b0943
commit a16d4dd935

View File

@@ -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;