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

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/file
From:       David Faure <faure () kde ! org>
Date:       2009-07-06 17:23:22
Message-ID: 1246901002.583968.31235.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 992348 by dfaure:

Backport fix for bug 190720:
emit "file renamed" via KDirNotify when foo.part is renamed to foo (at end of download).
This fixes nepomuk losing annotations that were added to the .part file during the download.


 M  +3 -1      file.cpp  


--- trunk/KDE/kdelibs/kioslave/file/file.cpp #992347:992348
@@ -96,6 +96,7 @@
 #include <sys/mnttab.h>
 #endif
 
+#include <kdirnotify.h>
 #include <kio/ioslave_defaults.h>
 #include <kde_file.h>
 #include <kglobal.h>
@@ -721,6 +722,7 @@
             error(KIO::ERR_CANNOT_RENAME_PARTIAL, dest_orig);
             return;
         }
+        org::kde::KDirNotify::emitFileRenamed(dest, dest_orig);
     }
 
     // set final permissions
@@ -1114,7 +1116,7 @@
 		if( WEXITSTATUS( system( buffer.constData() )) == 4 ) {
 			/*
 			 *  this is not an error, so skip "testLogFile()"
-			 *  to avoid wrong/confusing error popup. The 
+			 *  to avoid wrong/confusing error popup. The
 			 *  temporary file is removed by KTemporaryFile's
 			 *  destructor, so don't do that manually.
 			 */
[prev in list] [next in list] [prev in thread] [next in thread] 

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