Commit 8dfc6f0b authored by Jan Möbius's avatar Jan Möbius
Browse files

Don't write recent files to old ini file anymore

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11686 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8a657f1b
......@@ -298,24 +298,6 @@ void Core::readApplicationOptions(INIFile& _ini) {
*/
void Core::writeApplicationOptions(INIFile& _ini) {
// Write maximum recent file count to ini
_ini.add_entry("Options","MaxRecent", OpenFlipperSettings().value("Core/File/MaxRecent",15).toInt() );
// Write list of recent files to ini
QStringList recentFiles = OpenFlipperSettings().value("Core/File/RecentFiles", QStringList()).toStringList();
QStringList recentTypes = OpenFlipperSettings().value("Core/File/RecentTypes", QStringList()).toStringList();
for ( int j = 0 ; j < recentFiles.size(); ++j) {
// Save filename
QString key = "recent" + QString::number(j);
QString filename = recentFiles[j];
_ini.add_entry( "Options" , key , filename );
// Save DataType
key = "type" + QString::number(j);
QString type = recentTypes[j];
_ini.add_entry( "Options" , key , type );
}
// save ViewModes
QVector< QString > toolboxes;
QVector< QString > toolbars;
......
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