Skip to content

Commit 596090e

Browse files
committed
Create new child window when first run
1 parent 410e097 commit 596090e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

omodsim/mainwindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ MainWindow::MainWindow(QWidget *parent)
8989
connect(&_mbMultiServer, &ModbusMultiServer::connectionError, this, &MainWindow::on_connectionError);
9090

9191
loadSettings();
92+
93+
if(_windowCounter == 0)
94+
ui->actionNew->trigger();
9295
}
9396

9497
///
@@ -1553,9 +1556,6 @@ void MainWindow::loadSettings()
15531556
m.endGroup();
15541557
}
15551558
}
1556-
1557-
if(_windowCounter == 0)
1558-
ui->actionNew->trigger();
15591559
}
15601560

15611561
///

0 commit comments

Comments
 (0)