Skip to content

Commit

Permalink
QTBUG-69204 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
sssoleileraaa committed Mar 13, 2019
1 parent 4117a8d commit 2d44038
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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__(
Expand Down

0 comments on commit 2d44038

Please sign in to comment.