Cosmetics
This commit is contained in:
@@ -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!
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user