Commit 1af23628 authored by Dirk Wilden's avatar Dirk Wilden

recentFiles crash fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8506 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96a61150
...@@ -76,7 +76,7 @@ void addRecentFile(QString _file, DataType _type) { ...@@ -76,7 +76,7 @@ void addRecentFile(QString _file, DataType _type) {
} }
// Erase if too many files in list // Erase if too many files in list
if ( recentFiles.size() >= OpenFlipperSettings().value("Core/File/MaxRecent").toInt() ) { if ( recentFiles.size() >= OpenFlipperSettings().value("Core/File/MaxRecent",10).toInt() ) {
recentFiles.pop_back(); recentFiles.pop_back();
recentTypes.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