diff options
author | senator <senator> | 2010-10-12 12:18:26 +0000 |
---|---|---|
committer | senator <senator> | 2010-10-12 12:18:26 +0000 |
commit | 159d4a25168090718d30965f8ab3d9eadb701c46 (patch) | |
tree | 8da6c8bc0f0f3e3e91fddaa201770f8ca72e1115 /client/pracro.cc | |
parent | 9ba471ac654ff18178723ef0a84c46a03fa20b6f (diff) |
added template functionality, not done but i need to continue work on a windows pc so i will commit anyways
Diffstat (limited to 'client/pracro.cc')
-rw-r--r-- | client/pracro.cc | 9 |
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; } |