[gnome-boxes] Continue saved installations on launch
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Continue saved installations on launch
- Date: Mon, 8 Oct 2012 14:34:57 +0000 (UTC)
commit 7e8730c2b4aad977bfaf7028beee453edda047c7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Oct 5 05:08:28 2012 +0300
Continue saved installations on launch
This fixes a regression introduced by 4f6f421.
https://bugzilla.gnome.org/show_bug.cgi?id=685538
src/vm-creator.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 8a28838..92ec01e 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -85,7 +85,7 @@ private class Boxes.VMCreator {
private void on_machine_state_changed (GLib.Object object, GLib.ParamSpec? pspec = null) {
var machine = object as LibvirtMachine;
- if (machine.state != Machine.MachineState.STOPPED && machine.state != Machine.MachineState.UNKNOWN)
+ if (machine.is_on ())
return;
var domain = machine.domain;
@@ -96,7 +96,7 @@ private class Boxes.VMCreator {
return;
}
- if (domain.get_saved ()) {
+ if (machine.state == Machine.MachineState.SAVED) {
debug ("'%s' has saved state, no need for post-installation setup on it", machine.name);
// This means the domain was just saved and thefore this is not yet the time to take any post-install
// steps for this domain.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]