diff --git a/blink/mainwindow.py b/blink/mainwindow.py index b0073118156ff27c83d6b40e3b862634a8c95be2..82d984c3873ad5cb81c752bd368a9401ccd9ce57 100644 --- a/blink/mainwindow.py +++ b/blink/mainwindow.py @@ -365,7 +365,6 @@ class MainWindow(base_class, ui_class): else: selected_items = self.contact_list.selectionModel().selectedIndexes() self.enable_call_buttons(account_manager.default_account is not None and len(selected_items)==1 and type(self.contact_model.data(selected_items[0])) is Contact) - # switch to the sessions panel if there are active sessions, else to the contacts panel -Dan active_widget = self.contact_list_panel if text.isEmpty() else self.search_panel if active_widget is self.search_panel and self.contacts_view.currentWidget() is not self.search_panel: self.search_list.selectionModel().clearSelection()