summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
authorsenator <senator>2010-10-12 10:18:28 +0000
committersenator <senator>2010-10-12 10:18:28 +0000
commit9ba471ac654ff18178723ef0a84c46a03fa20b6f (patch)
tree9cdd3fd24f4498e1e4899538f7c5b8c1dd4209ab /client/pracro.cc
parentda99c66b024032122bb0ff7bf2084f05a82c3668 (diff)
added launcher if no cpr specified on command line
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc12
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*/