diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 12:47:28 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 12:47:28 +0100 |
commit | cd261fd17f9d535c90547ae52ecc292e2694ae37 (patch) | |
tree | 0ef8fed534bec3dedb564fe4b0b58e98cfe798aa /client | |
parent | aceed4cc78aaff9f62c4c6f4e6201c38e94a577f (diff) |
Make sure main window has focus when pcpviewer is used.
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; |