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

Commits:
e134e47d by Philipp Hörist at 2018-03-24T17:25:49+01:00
HistoryManager: Clear logs TextView when nothing is selected

- - - - -


1 changed file:

- gajim/history_manager.py


Changes:

=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -264,11 +264,10 @@ class HistoryManager:
     def on_jids_listview_selection_changed(self, widget, data=None):
         liststore, list_of_paths = self.jids_listview.get_selection()\
                 .get_selected_rows()
-        paths_len = len(list_of_paths)
-        if paths_len == 0:  # nothing is selected
-            return
 
-        self.logs_liststore.clear()  # clear the store
+        self.logs_liststore.clear()
+        if not list_of_paths:
+            return
 
         self.welcome_vbox.hide()
         self.search_results_scrolledwindow.hide()



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

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/e134e47debad1d8ccda33771849dcfbbc5b48f01
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