[gnome-boxes] machine: Ensure 'saving' flag is reset on failure
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Ensure 'saving' flag is reset on failure
- Date: Sat, 29 Aug 2015 22:21:32 +0000 (UTC)
commit 7074809940120f3ea618ef365357554cf4443a55
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Aug 28 16:55:26 2015 +0100
machine: Ensure 'saving' flag is reset on failure
Ensure that 'reset' boolean field is reset if saving operation fails.
https://bugzilla.gnome.org/show_bug.cgi?id=753888
src/machine.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 6410777..2e3e9a7 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -312,10 +312,9 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
try {
yield save_real ();
} finally {
- this.info = info;
+ saving = false;
+ update_info ();
}
- saving = false;
- update_info ();
}
public void schedule_autosave () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]