Commit 892c3fe2 authored by Peter Simonsson's avatar Peter Simonsson

Oops should work with more then one file now

svn path=/trunk/koffice/; revision=663960
parent 1fa8bcc7
......@@ -102,12 +102,12 @@ KoRecentDocumentsPane::KoRecentDocumentsPane(QWidget* parent, const KComponentDa
KConfigGroup config( componentData().config(), "RecentFiles" );
int i = 1;
QString value;
QString path;
QList<KFileItem> fileList;
QStandardItem* rootItem = model()->invisibleRootItem();
do {
QString path = config.readPathEntry(QString("File%1").arg(i));
path = config.readPathEntry(QString("File%1").arg(i));
if(!path.isEmpty()) {
QString name = config.readPathEntry(QString("Name%1").arg(i));
......@@ -133,7 +133,7 @@ KoRecentDocumentsPane::KoRecentDocumentsPane(QWidget* parent, const KComponentDa
}
i++;
} while ( !value.isEmpty() || i<=10 );
} while ( !path.isEmpty() || i<=10 );
//Select the first file
......
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