Commit 14935faa authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed syntax print

parent 3ac0cb89
...@@ -2566,7 +2566,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -2566,7 +2566,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
pass pass
def _SH_SessionListSelectionChanged(self, selected, deselected): def _SH_SessionListSelectionChanged(self, selected, deselected):
# print "-- chat selection changed %s -> %s" % ([x.row() for x in deselected.indexes()], [x.row() for x in selected.indexes()]) # print("-- chat selection changed %s -> %s" % ([x.row() for x in deselected.indexes()], [x.row() for x in selected.indexes()]))
self.selected_session = selected[0].topLeft().data(Qt.UserRole) if selected else None self.selected_session = selected[0].topLeft().data(Qt.UserRole) if selected else None
if self.selected_session is not None: if self.selected_session is not None:
self.tab_widget.setCurrentWidget(self.selected_session.chat_widget) # why do we switch the tab here, but do everything else in the selected_session property setter? -Dan self.tab_widget.setCurrentWidget(self.selected_session.chat_widget) # why do we switch the tab here, but do everything else in the selected_session property setter? -Dan
......
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