From 159d4a25168090718d30965f8ab3d9eadb701c46 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 12 Oct 2010 12:18:26 +0000 Subject: added template functionality, not done but i need to continue work on a windows pc so i will commit anyways --- client/pracro.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client/pracro.cc') 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; } -- cgit v1.2.3