[gnome-boxes] actions-popover: No properties for under-import VM
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] actions-popover: No properties for under-import VM
- Date: Wed, 4 May 2016 15:13:34 +0000 (UTC)
commit f9c34011db4d2495119e348a552ad2ba6861fa75
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 3 18:02:58 2016 +0100
actions-popover: No properties for under-import VM
If the VM is being imported, do not allow user to go to it's properties.
Hardly any option will work while importing so why bother.
https://bugzilla.gnome.org/show_bug.cgi?id=710307
src/actions-popover.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 815d1fa..927076b 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -81,6 +81,8 @@ private class Boxes.ActionsPopover: Gtk.Popover {
section = new GLib.Menu ();
section.append (_("Properties"), "box.properties");
menu.append_section (null, section);
+ var action = action_group.lookup_action ("properties") as GLib.SimpleAction;
+ action.set_enabled (!importing);
bind_model (menu, null);
window.current_item = item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]