]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- work on dbus interface
authorArvin Schnell <aschnell@suse.de>
Wed, 18 Jul 2012 12:13:34 +0000 (14:13 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 18 Jul 2012 12:13:34 +0000 (14:13 +0200)
snapper/File.cc

index ca0aba2451705692094fdaed3627720808c3a459..4ed0532889c3b3275281d72e19794861a81234de 100644 (file)
@@ -722,7 +722,7 @@ namespace snapper
            }
        }
 
-       return true;
+       return error;
     }
 
 
@@ -817,12 +817,15 @@ namespace snapper
        if (getSnapper()->getUndoCallback())
            getSnapper()->getUndoCallback()->start(comparison);
 
+       bool error = false;
+
        for (vector<File>::reverse_iterator it = entries.rbegin(); it != entries.rend(); ++it)
        {
            if (it->getUndo())
            {
                if (it->getPreToPostStatus() == CREATED)
-                   it->doUndo();
+                   if (!it->doUndo())
+                       error = true;
            }
        }
 
@@ -831,7 +834,8 @@ namespace snapper
            if (it->getUndo())
            {
                if (it->getPreToPostStatus() != CREATED)
-                   it->doUndo();
+                   if (!it->doUndo())
+                       error = true;
            }
        }
 
@@ -840,7 +844,7 @@ namespace snapper
 
        y2mil("end doUndo");
 
-       return true;
+       return error;
     }