Philipp Hörist pushed to branch master at gajim / gajim


Commits:
29a7f5cd by Daniel Brötzmann at 2019-06-10T20:38:28Z
RosterWindow: Fix Index out of range

Currently, detecting a file drop on the roster window is not recognized
correctly. This fix avoids an Index error thrown after dropping a file
on the roster by checking if there is a selection before continuing.

- - - - -


1 changed file:

- gajim/roster_window.py


Changes:

=====================================
gajim/roster_window.py
=====================================
@@ -4252,6 +4252,10 @@ class RosterWindow:
             dialog.popup()
             return
 
+        # Check if something is selected
+        if treeview.get_selection().count_selected_rows() == 0:
+            return
+
         # a roster entry was dragged and dropped somewhere in the roster
 
         # source: the row that was dragged



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/29a7f5cda0f068795feee03deafe5ba645392a9d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/29a7f5cda0f068795feee03deafe5ba645392a9d
You're receiving this email because of your account on dev.gajim.org.

_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to