moviebrowser: only save settings if modified

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3ece169f9b
Author: Gaucho316 <Gaucho316@hotmail.com>
Date: 2013-02-26 (Tue, 26 Feb 2013)

Origin message was:
------------------
- moviebrowser: only save settings if modified

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Gaucho316
2013-02-26 13:53:07 +01:00
committed by vanhofen
parent f4f452585b
commit 0d0928b156

View File

@@ -806,7 +806,8 @@ bool CMovieBrowser::saveSettings(MB_SETTINGS* settings)
configfile.setInt32(cfg_key, settings->browserRowWidth[i]);
}
configfile.saveConfig(MOVIEBROWSER_SETTINGS_FILE);
if (configfile.getModifiedFlag())
configfile.saveConfig(MOVIEBROWSER_SETTINGS_FILE);
return (result);
}