[gnome-boxes] vm-creator: Unhook from state-changed signal on machine deletion
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-creator: Unhook from state-changed signal on machine deletion
- Date: Thu, 5 Jul 2012 15:27:48 +0000 (UTC)
commit d520627bb750735903e05d31e63fe7ce22f4b861
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 5 05:22:01 2012 +0300
vm-creator: Unhook from state-changed signal on machine deletion
No point in keeping track of machine's state and (keep a ref to it as a
side-effect) if its deleted.
https://bugzilla.gnome.org/show_bug.cgi?id=679430
src/vm-creator.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 0376b31..e55cb6f 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -81,6 +81,7 @@ private class Boxes.VMCreator {
var domain = machine.domain;
if (machine.deleted) {
+ machine.disconnect (state_changed_id);
debug ("'%s' was deleted, no need for post-installation setup on it", machine.name);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]