Commit f7b4f822 authored by Jan Möbius's avatar Jan Möbius

Remember last 15 recent files

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10117 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4b718a4f
......@@ -372,7 +372,7 @@ void Core::readRecentFiles(QString _filename){
void Core::writeApplicationOptions(INIFile& _ini) {
// Write maximum recent file count to ini
_ini.add_entry("Options","MaxRecent", OpenFlipperSettings().value("Core/File/MaxRecent",10).toInt() );
_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").toStringList();
......
......@@ -76,7 +76,7 @@ void addRecentFile(QString _file, DataType _type) {
}
// Erase if too many files in list
if ( recentFiles.size() >= OpenFlipperSettings().value("Core/File/MaxRecent",10).toInt() ) {
if ( recentFiles.size() >= OpenFlipperSettings().value("Core/File/MaxRecent",15).toInt() ) {
recentFiles.pop_back();
recentTypes.pop_back();
}
......
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