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
master
matthiasmiller 19 years ago
parent ac9f0757f9
commit 0a18699926
  1. 2
      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==""){