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
+