[gnome-boxes] libvirt-machine: Not savable when being saved already
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: Not savable when being saved already
- Date: Fri, 24 Oct 2014 12:41:44 +0000 (UTC)
commit 4a496333edd48ef60d0c3c113ba4655cd7918f45
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Oct 24 13:37:12 2014 +0100
libvirt-machine: Not savable when being saved already
Don't claim the machine to be savable if its being saved.
This solves the issue of pause button still being available to user and
Boxes leading into interesting scenerios if user clicks on the button.
https://bugzilla.gnome.org/show_bug.cgi?id=730793
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 ff7111c..22532b6 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -29,7 +29,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
set { source.set_boolean ("source", "save-on-quit", value); }
}
- public override bool can_save { get { return state != MachineState.SAVED; } }
+ public override bool can_save { get { return !saving && state != MachineState.SAVED; } }
public override void disconnect_display () {
stay_on_display = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]