[gnome-boxes] libvirt-machine: More use of new is_on() predicate
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: More use of new is_on() predicate
- Date: Thu, 11 Oct 2012 14:09:12 +0000 (UTC)
commit 8a7b1ab6ba5b6303dd6991744db3ee2c1c4e7cee
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Oct 10 17:12:41 2012 +0300
libvirt-machine: More use of new is_on() predicate
We don't tell user to reboot the box if machine is exactly in 'stopped'
state. We probably want to apply that to all off states.
https://bugzilla.gnome.org/show_bug.cgi?id=685846
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 c5975ea..a435935 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -532,7 +532,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
on_ram_changed);
this.notify["state"].connect (() => {
- if (state == MachineState.STOPPED)
+ if (!is_on ())
property.reboot_required = false;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]