Does this work? (#4269)

Read an Horus SD card produces a temporary .otx file now
This commit is contained in:
Bertrand Songis
2017-01-22 14:08:13 +01:00
committed by GitHub
parent 9bbc595eb1
commit c21be4845e
3 changed files with 83 additions and 76 deletions
+3 -2
View File
@@ -487,8 +487,9 @@ bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)
}
refresh(true);
if (resetCurrentFile)
if (resetCurrentFile) {
setCurrentFile(filename);
}
return true;
}
@@ -588,7 +589,7 @@ bool MdiChild::maybeSave()
return true;
}
void MdiChild::setCurrentFile(const QString &fileName)
void MdiChild::setCurrentFile(const QString & fileName)
{
curFile = QFileInfo(fileName).canonicalFilePath();
isUntitled = false;