]> Some of my projects - localmylist.git/commitdiff
Correct debug message.
authorAPTX <marek321@gmail.com>
Fri, 26 Apr 2013 18:33:03 +0000 (20:33 +0200)
committerAPTX <marek321@gmail.com>
Fri, 26 Apr 2013 18:33:03 +0000 (20:33 +0200)
localmylist/renamehandler.cpp

index 8b11234ae886711bea56e64c28b6de89fbe861c1..4511579ef8da4cbccb0ed4c001b0d3a3de08383b 100644 (file)
@@ -178,9 +178,10 @@ void RenameHandler::handleRename()
                dir.setFilter(QDir::NoDotAndDotDot | QDir::AllEntries);
                while (!dir.count())
                {
+                       // QDir::rmdir only removes empty directories
                        if (!dir.rmdir(dir.canonicalPath()))
                        {
-                               qDebug() << "Failed to remove empty directory " << dir.path();
+                               qDebug() << "Failed to remove directory " << dir.path();
                                break;
                        }
                        if (!dir.cdUp())