From 0a18699926b16e5b7c7afbdac03707ff9cd83f7f Mon Sep 17 00:00:00 2001 From: matthiasmiller Date: Sat, 21 Jan 2006 20:25:12 +0000 Subject: [PATCH] fix immediate exit when running as bundle on Mac Allow Qt to process and remove known command-line arguments before attempting to process remaining items. git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@14 b624d157-de02-0410-bad0-e51aec6abb33 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c73066c..57e3c03 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,9 +66,9 @@ cout << keys[i].ascii() << endl; } QApplication::setStyle(QStyleFactory::create("slimplastic")); */ +QApplication* app=new QApplication(argc,argv); QString ArgFile,ArgCfg,IniFilename; parseCmdLineArgs(argc,argv,ArgFile,ArgCfg); -QApplication* app=new QApplication(argc,argv); AppDir=app->applicationDirPath(); //Load Config if(ArgCfg==""){