diff --git a/securedrop_client/gui/widgets.py b/securedrop_client/gui/widgets.py index 56833dbb4c..9b62bc74a8 100644 --- a/securedrop_client/gui/widgets.py +++ b/securedrop_client/gui/widgets.py @@ -172,11 +172,10 @@ def set_conversation(self, widget): old_widget = self.view_layout.takeAt(0) if old_widget: - old_widget.widget().setVisible(False) - + old_widget.widget().hide() + + widget.show() self.view_layout.addWidget(widget) - widget.setVisible(True) - class SourceList(QListWidget): """ @@ -695,7 +694,6 @@ def __init__(self, source_db_object: Source, sdc_home: str, controller: Client, main_layout = QVBoxLayout() main_layout.addWidget(self.scroll) self.setLayout(main_layout) - self.update_conversation(self.source.collection) def clear_conversation(self): @@ -771,7 +769,7 @@ def add_reply(self, message_id: str, reply: str, files=None) -> None: class SourceConversationWrapper(QWidget): """ Wrapper for a source's conversation including the chat window, profile tab, and other - per-soruce resources. + per-source resources. """ def __init__(