Cosmetics

This commit is contained in:
bsongis
2014-02-26 15:22:27 +01:00
parent 356980fac3
commit 933f866e93
+2 -2
View File
@@ -681,9 +681,8 @@ void MainWindow::openRecentFile()
QMdiSubWindow *existing = findMdiChild(fileName); QMdiSubWindow *existing = findMdiChild(fileName);
if (existing) { if (existing) {
mdiArea->setActiveSubWindow(existing); mdiArea->setActiveSubWindow(existing);
return;
} }
else {
MdiChild *child = createMdiChild(); MdiChild *child = createMdiChild();
if (child->loadFile(fileName)) { if (child->loadFile(fileName)) {
statusBar()->showMessage(tr("File loaded"), 2000); statusBar()->showMessage(tr("File loaded"), 2000);
@@ -691,6 +690,7 @@ void MainWindow::openRecentFile()
} }
} }
} }
}
void MainWindow::loadProfile() //TODO Load all variables - Also HW! void MainWindow::loadProfile() //TODO Load all variables - Also HW!
{ {