[dconf-editor] Fix a crash on Ctrl-Return.



commit 64e3307fc1ffd3039fa1789e2a76ea6b5cd3d879
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Feb 12 16:47:21 2019 +0100

    Fix a crash on Ctrl-Return.
    
    When in delay mode, there is no
    switch to toggle, so don't try.

 editor/dconf-window.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 4a8e4da..8a8f9b3 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -554,6 +554,8 @@ private class DConfWindow : BookmarksWindow, AdaptativeWidget
     {
         if (row_action_blocked ())
             return;
+        if (modifications_handler.get_current_delay_mode ())    // TODO better
+            return;
 
         main_view.close_popovers ();
         main_view.toggle_boolean_key ();


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