[gnome-boxes] app-window: show_properties() take current_item into account



commit a8df0ac834429b76fc0689aa9060d2b25ac187fc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Nov 14 13:49:30 2014 +0000

    app-window: show_properties() take current_item into account
    
    If we already have an item marked as current, simply go directly to
    properties view, ignoring selection.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738761

 src/app-window.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 91b82f8..fcc9263 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -225,6 +225,12 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
     }
 
     public void show_properties () {
+        if (current_item != null) {
+            set_state (UIState.PROPERTIES);
+
+            return;
+        }
+
         var selected_items = view.get_selected_items ();
 
         selection_mode = false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]