diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/pracro.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/pracro.cc b/client/pracro.cc index 1e11e95..9e383e9 100644 --- a/client/pracro.cc +++ b/client/pracro.cc @@ -189,7 +189,6 @@ int main(int argc, char *argv[]) */ MainWindow mainwindow(cpr, title, course, templ, host, port, user); - mainwindow.show(); PCPViewer *pcpviewer = NULL; if(show_viewer) { @@ -199,6 +198,9 @@ int main(int argc, char *argv[]) pcpviewer, SLOT(close())); } + // Show last to gain focus. + mainwindow.show(); + int ret = app.exec(); if(pcpviewer) delete pcpviewer; |