[gnome-boxes] properties-toolbar: Return to COLLECTION if VM is not running
- From: Lasse Schuirmann <lschuirma src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties-toolbar: Return to COLLECTION if VM is not running
- Date: Wed, 10 Sep 2014 06:49:19 +0000 (UTC)
commit b68642b76e16a1639d90d3928f8e15dae99ca213
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Fri Sep 5 18:41:00 2014 +0200
properties-toolbar: Return to COLLECTION if VM is not running
https://bugzilla.gnome.org/show_bug.cgi?id=736140
src/properties-toolbar.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/properties-toolbar.vala b/src/properties-toolbar.vala
index 1310ecc..3c99195 100644
--- a/src/properties-toolbar.vala
+++ b/src/properties-toolbar.vala
@@ -29,7 +29,10 @@ private class Boxes.PropertiesToolbar: HeaderBar {
[GtkCallback]
private void on_back_clicked () {
- window.set_state (window.previous_ui_state);
+ if ((window.current_item as Machine).state != Machine.MachineState.RUNNING)
+ window.set_state (UIState.COLLECTION);
+ else
+ window.set_state (window.previous_ui_state);
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]