We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03385ce commit 353453bCopy full SHA for 353453b
Client/qtTeamTalk/textmessagedlg.cpp
@@ -61,9 +61,12 @@ void TextMessageDlg::init(const User& user)
61
bool listview = ttSettings->value(SETTINGS_DISPLAY_CHAT_HISTORY_LISTVIEW, SETTINGS_DISPLAY_CHAT_HISTORY_LISTVIEW_DEFAULT).toBool();
62
if (listview)
63
{
64
+ ui.horizontalLayout_2->removeWidget(ui.historyTextEdit);
65
+
66
auto chat = new ChatTextList(ui.groupBox);
- delete ui.groupBox->layout()->replaceWidget(ui.historyTextEdit, chat);
67
m_history = chat;
68
+ ui.horizontalLayout_2->addWidget(chat);
69
+ delete ui.historyTextEdit;
70
ui.historyTextEdit = nullptr;
71
}
72
else
0 commit comments