diff options
Diffstat (limited to 'client/pracro.cc')
-rw-r--r-- | client/pracro.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/pracro.cc b/client/pracro.cc index a3c56ff..c02af93 100644 --- a/client/pracro.cc +++ b/client/pracro.cc @@ -37,6 +37,7 @@ #include "netcom.h" #include "mainwindow.h" +#include "launcherwindow.h" #include "viewer.h" #include "debug.h" @@ -177,6 +178,15 @@ int main(int argc, char *argv[]) QFont f = fontdb.font("Bitstream Vera Sans Mono", "", 8); fixedfont = &f; + if(cpr == CPR_DEFAULT) { + LauncherWindow lwnd; + if(lwnd.exec() == QDialog::Accepted) { + cpr = lwnd.cpr(); + } else { + return 1; + } + } + if(show_editor && show_viewer) { MainWindow mainwindow(cpr, templ, host, port, user); mainwindow.show(); @@ -204,4 +214,6 @@ int main(int argc, char *argv[]) return 1; } + + #endif/*TESTING*/ |