[gnome-boxes] 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] libvirt-machine: Mark under-import as un-saveable
- Date: Wed, 4 May 2016 15:13:49 +0000 (UTC)
commit 6e71b216add834003801b70b08bae0c0898db557
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.
https://bugzilla.gnome.org/show_bug.cgi?id=710307
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]