mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user