Commit 34cd3ffa authored by Jan Möbius's avatar Jan Möbius

Don't throw error if old ini style does not exist. Create it

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11687 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8dfc6f0b
......@@ -1021,20 +1021,15 @@ Core::writeOnExit() {
QString inifile = OpenFlipper::Options::configDirStr() + OpenFlipper::Options::dirSeparator() + "OpenFlipper.ini";
INIFile ini;
if ( ! ini.connect( inifile ,false) ) {
emit log(LOGERR,tr("Failed to connect to users ini file"));
if ( ! ini.connect( inifile,true) ) {
emit log(LOGERR,tr("Can not create user ini file"));
} else {
writeApplicationOptions(ini);
ini.disconnect();
}
if ( ! ini.connect( inifile,true) ) {
emit log(LOGERR,tr("Can not create user ini file"));
} else {
writeApplicationOptions(ini);
ini.disconnect();
}
//store the windowState
if ( OpenFlipper::Options::gui() ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment