Skip to content

Commit 353453b

Browse files
committed
Fix weird edit field appearing
1 parent 03385ce commit 353453b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Client/qtTeamTalk/textmessagedlg.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ void TextMessageDlg::init(const User& user)
6161
bool listview = ttSettings->value(SETTINGS_DISPLAY_CHAT_HISTORY_LISTVIEW, SETTINGS_DISPLAY_CHAT_HISTORY_LISTVIEW_DEFAULT).toBool();
6262
if (listview)
6363
{
64+
ui.horizontalLayout_2->removeWidget(ui.historyTextEdit);
65+
6466
auto chat = new ChatTextList(ui.groupBox);
65-
delete ui.groupBox->layout()->replaceWidget(ui.historyTextEdit, chat);
6667
m_history = chat;
68+
ui.horizontalLayout_2->addWidget(chat);
69+
delete ui.historyTextEdit;
6770
ui.historyTextEdit = nullptr;
6871
}
6972
else

0 commit comments

Comments
 (0)