aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-02 02:49:56 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-02 02:49:56 +0000
commit09b19b15dec3f28b8c4a5610c28bbb03b77d849d (patch)
tree07ba9170af57959712f8c5bf06cc48de9c8a61e5 /src/gui
parent3e31ba0630d42e66ad7006871bcbf2b483d55860 (diff)
downloadopen-axiom-09b19b15dec3f28b8c4a5610c28bbb03b77d849d.tar.gz
Tidy up QApplication initialization
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/main.cc b/src/gui/main.cc
index 621f4c28..9b018492 100644
--- a/src/gui/main.cc
+++ b/src/gui/main.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011, Gabriel Dos Reis.
+// Copyright (C) 2011-2013, Gabriel Dos Reis.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -36,12 +36,12 @@
int
main(int argc, char* argv[]) {
using namespace OpenAxiom;
+ QApplication app(argc, argv);
Command command;
// The toplevel driver may be have called us with the
// path to the gui interface (argv[0]) and the full name
// of the toplevel driver itself (argv[1].) Skip.
preprocess_arguments(&command, argc - 1, argv + 1);
- QApplication app(argc, argv);
QApplication::setApplicationName("OpenAxiom");
QApplication::setOrganizationDomain("www.open-axiom.org");
MainWindow main_win(command);