Skip to content
Snippets Groups Projects
Commit e134e47d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

HistoryManager: Clear logs TextView when nothing is selected

parent 058d3db1
No related branches found
No related tags found
No related merge requests found
...@@ -264,11 +264,10 @@ class HistoryManager: ...@@ -264,11 +264,10 @@ class HistoryManager:
def on_jids_listview_selection_changed(self, widget, data=None): def on_jids_listview_selection_changed(self, widget, data=None):
liststore, list_of_paths = self.jids_listview.get_selection()\ liststore, list_of_paths = self.jids_listview.get_selection()\
.get_selected_rows() .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.welcome_vbox.hide()
self.search_results_scrolledwindow.hide() self.search_results_scrolledwindow.hide()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment