From 09b19b15dec3f28b8c4a5610c28bbb03b77d849d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Tue, 2 Apr 2013 02:49:56 +0000 Subject: Tidy up QApplication initialization --- src/gui/main.cc | 4 ++-- 1 file 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); -- cgit v1.2.3