Permalink
Browse files

Fixed: missing files in recent list

Merge branch 'fix-missing-recent-file'
  • Loading branch information...
riuson committed Jul 14, 2012
2 parents b21eff4 + d4be888 commit 73cfc6dc557d950efbdd8200e369f3a6d129d3e0
Showing with 5 additions and 1 deletion.
  1. +5 −1 classes/recentlist.cpp
@@ -22,6 +22,7 @@
#include <QStringList>
#include <QStringListIterator>
#include <QSettings>
#include <QFileInfo>
//-----------------------------------------------------------------------------
RecentList::RecentList(QObject *parent) :
QObject(parent)
@@ -34,7 +35,10 @@ RecentList::RecentList(QObject *parent) :
for (int i = 0; i < size; i++)
{
sett.setArrayIndex(i);
this->mFiles->append(sett.value("filename").toString());
QString filename = sett.value("filename").toString();
QFileInfo info(filename);
if (info.exists())
this->mFiles->append(filename);
}
sett.endArray();
}

0 comments on commit 73cfc6d

Please sign in to comment.