[gnome-boxes/wip/clone: 7/16] libvirt-machine: Mark under-import as un-saveable
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/clone: 7/16] libvirt-machine: Mark under-import as un-saveable
- Date: Tue, 3 May 2016 23:17:34 +0000 (UTC)
commit 147bffc7c7f1d558bf8aeef1bb53a1ab3603fafb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 3 18:32:19 2016 +0100
libvirt-machine: Mark under-import as un-saveable
We can't really save machine that is under import, so let's not give
that impression.
src/libvirt-machine.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 62caece..280b32b 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -31,7 +31,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
}
public override bool suspend_at_exit { get { return connection == App.app.default_connection &&
!run_in_bg; } }
- public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
+ public override bool can_save { get { return !saving && state != MachineState.SAVED && !importing; } }
public override bool can_restart { get { return state == MachineState.RUNNING || state ==
MachineState.SAVED; } }
protected override bool should_autosave {
get {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]