KDE/kdelibs/kio/kfile

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Sep 12 15:13:08 CEST 2008


SVN commit 860264 by chehrlic:

fix KRecentDocument::add() for windows the same way it's done in kate

CCMAIL: kde-windows at kde.org

 M  +2 -2      krecentdocument.cpp  


--- trunk/KDE/kdelibs/kio/kfile/krecentdocument.cpp #860263:860264
@@ -82,8 +82,8 @@
 
 void KRecentDocument::add(const KUrl& url, const QString& desktopEntryName)
 {
-	if ( url.isLocalFile() && !KGlobal::dirs()->relativeLocation("tmp", url.path()).startsWith('/'))
-		return;
+    if ( url.isLocalFile() && KGlobal::dirs()->relativeLocation( "tmp", url.path() ) != url.path() )
+      return; // inside tmp resource, do not save
 
     QString openStr = url.url();
     openStr.replace( QRegExp("\\$"), "$$" ); // Desktop files with type "Link" are $-variable expanded


More information about the Kde-windows mailing list