[gnome-boxes/gnome-3-16] machine: Only autosave running machines
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-16] machine: Only autosave running machines
- Date: Tue, 12 May 2015 21:12:35 +0000 (UTC)
commit 5ede7dcc4181b8e9978183e61c4b5959890ae050
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Apr 27 17:07:01 2015 +0100
machine: Only autosave running machines
There is no point in autosaving non-running machines.
https://bugzilla.gnome.org/show_bug.cgi?id=748381
src/machine.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 81cd884..e671f31 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -21,7 +21,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
protected virtual bool should_autosave {
get {
- return (can_save && autosave_timeout_id == 0);
+ return (can_save && is_running () && autosave_timeout_id == 0);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]