[gnome-boxes] libvirt-machine: Only autosave for default connection
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: Only autosave for default connection
- Date: Thu, 9 Jul 2015 19:28:29 +0000 (UTC)
commit 25f829c1cd3e8bb53f3448ff7bc61e28842e0178
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 9 20:11:39 2015 +0100
libvirt-machine: Only autosave for default connection
We do not want to manage the state of VMs for non-default libvirt
(i-e other than session libvirt) connection.
src/libvirt-machine.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 3dbbdb3..246c044 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -32,7 +32,9 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
protected override bool should_autosave {
get {
- return (base.should_autosave && (vm_creator == null || !vm_creator.express_install));
+ return (base.should_autosave &&
+ connection == App.app.default_connection &&
+ (vm_creator == null || !vm_creator.express_install));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]