[dconf-editor] Disallow toggling if unsensitive.



commit 94985e65b1791c3f16e90cb0049b206b7cb0bb8f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Dec 11 11:17:26 2017 +0100

    Disallow toggling if unsensitive.

 editor/dconf-window.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 7789838..c2f9685 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -478,7 +478,8 @@ class DConfWindow : ApplicationWindow
                     if (info_button.active)
                         info_button.active = false;
                     browser_view.discard_row_popover ();
-                    bookmarks_button.clicked ();
+                    if (bookmarks_button.sensitive)
+                        bookmarks_button.clicked ();
                     return true;
                 case "d":
                     if (info_button.active)


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