Commit 5c1ff76a authored by Luci Stanescu's avatar Luci Stanescu

Fixed enabling of call buttons for bonjour neighbours

parent 70e2aebf
......@@ -141,7 +141,7 @@ class MainWindow(base_class, ui_class):
def contact_list_selection_changed(self, selected, deselected):
selected_items = self.contact_list.selectionModel().selectedIndexes()
self.enable_call_buttons(len(selected_items)==1 and type(self.contact_model.data(selected_items[0])) is Contact)
self.enable_call_buttons(len(selected_items)==1 and isinstance(self.contact_model.data(selected_items[0]), Contact))
def switch_main_view(self):
widget = self.main_view.currentWidget().sibling_panel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment