From 962db5f736df584bef99199705dcb524677b3b1f Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 22 Sep 2018 21:14:56 +0300 Subject: [PATCH] added selecting row under the cursor for all views --- app/ui/main_app_window.py | 3 ++- app/ui/main_window.glade | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 698e73ee..26368d6f 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -532,7 +532,8 @@ class MainAppWindow: def on_view_drag_begin(self, view, context): """ Selects a row under the cursor in the view at the dragging beginning. """ - if view.get_selection().selection.count_selected_rows() > 1: + selection = view.get_selection() + if selection.count_selected_rows() > 1: view.do_toggle_cursor_row(view) def on_view_drag_data_get(self, view, drag_context, data, info, time): diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index e2b620d4..f9e54451 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -2048,6 +2048,7 @@ Author: Dmitriy Yefremov True + @@ -2292,6 +2293,7 @@ Author: Dmitriy Yefremov True +