[gnome-boxes] Don't try to delete transient domains



commit b1d6239a060fd575b24e0dff5185a595b32cb8eb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jan 12 16:58:39 2012 +0200

    Don't try to delete transient domains
    
    Why? Because they get automatically deleted when stopped. :)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667785

 src/libvirt-machine.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 4590cb9..0accdeb 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -335,7 +335,8 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
 
                 if (volume != null)
                     volume.delete (0);
-                domain.delete (0);
+                if (domain.persistent)
+                    domain.delete (0);
             } catch (GLib.Error err) {
                 warning (err.message);
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]