[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. fd5e298efdeeae1e80af271326cd0c17a98feb4f

Sune Vuorela pusling-guest at alioth.debian.org
Wed Feb 18 21:14:34 UTC 2009


The following commit has been merged in the master branch:
commit 893ce05a54b31ff8be8b4f17384d41e3c5ddce85
Author: Sune Vuorela <sune at vuorela.dk>
Date:   Wed Feb 18 22:12:02 2009 +0100

    no need to fail if a nonexistant directory is asked to be removed

diff --git a/diroperations/diroperations.cpp b/diroperations/diroperations.cpp
index 774aa7c..13a76b7 100644
--- a/diroperations/diroperations.cpp
+++ b/diroperations/diroperations.cpp
@@ -271,8 +271,8 @@ void recursiveRmDir(const QString & dir, ProgressDialogInterface *pd)
 {
     QDir currentDir(dir);
     if ( !currentDir.exists() )
-        throw Exception(Exception::NoSuchFileOrDirectory, dir);
-
+        return; // directory gone, no need to bother about exceptions
+        
     QDir::Filters filters = QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden | QDir::System | QDir::CaseSensitive;
     QFileInfoList currentList = currentDir.entryInfoList( filters, QDir::DirsLast );
     QFileInfo currentItem;

-- 
Kaboom - Debian KDE 3->4 migration tool



More information about the pkg-kde-commits mailing list