summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index c02af93..3867507 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -178,10 +178,11 @@ 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();
+ if(cpr == CPR_DEFAULT || templ = TEMPLATE_DEFAULT) {
+ LauncherWindow lwnd(cpr, templ);
+ if(lwnd.exec() == QDialog::Accepted && lwnd.getCpr() != "") {
+ cpr = lwnd.getCpr();
+ templ = lwnd.getTemplate();
} else {
return 1;
}