[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/main
From:       Peter Simonsson <psn () linux ! se>
Date:       2007-05-12 19:26:25
Message-ID: 1178997985.831238.11019.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 663960 by psn:

Oops should work with more then one file now


 M  +3 -3      KoRecentDocumentsPane.cpp  


--- trunk/koffice/libs/main/KoRecentDocumentsPane.cpp #663959:663960
@@ -102,12 +102,12 @@
   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 @@
     }
 
     i++;
-  } while ( !value.isEmpty() || i<=10 );
+  } while ( !path.isEmpty() || i<=10 );
 
 
   //Select the first file
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic