diff options
author | Felipe Borges <felipeborges@gnome.org> | 2021-08-22 11:20:34 +0200 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2021-08-30 08:58:34 +0000 |
commit | b688f746d60424ecd98ab58870da4865547b7ba2 (patch) | |
tree | 0ff5fa5b865593aa5ec023a20a563cc0950b4312 | |
parent | c465892c7b11fc1e142bc09209924a03e76961b6 (diff) | |
download | nautilus-b688f746d60424ecd98ab58870da4865547b7ba2.tar.gz |
files-view: Hide "current-dir-properties" option when searching
Clicking the "Properties" option in the right-click menu during
a search causes Nautilus to crash since the Properties dialog
handles files and directories, not search-view-directories.
Lets disable the "Properties" option when in search view.
Fixes #1491
-rw-r--r-- | src/nautilus-files-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index f013fa68c..7e6dd8bd0 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -7949,6 +7949,10 @@ real_update_actions_state (NautilusFilesView *view) g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE); action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), + "current-directory-properties"); + g_simple_action_set_enabled (G_SIMPLE_ACTION (action), + !selection_contains_search); + action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), "new-document"); g_simple_action_set_enabled (G_SIMPLE_ACTION (action), can_create_files && |