From 4f13ba089c5147eda087f0c30530d1ea7ddf6af3 Mon Sep 17 00:00:00 2001 From: chelovechishko Date: Tue, 5 Apr 2022 01:16:07 +0900 Subject: [PATCH] gui: chatlobbywidget: not expand public 'chat rooms' anymore at program start --- retroshare-gui/src/gui/ChatLobbyWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/ChatLobbyWidget.cpp b/retroshare-gui/src/gui/ChatLobbyWidget.cpp index 0b5350110..da754f51c 100644 --- a/retroshare-gui/src/gui/ChatLobbyWidget.cpp +++ b/retroshare-gui/src/gui/ChatLobbyWidget.cpp @@ -170,7 +170,10 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags) publicLobbyItem->setData(COLUMN_DATA, ROLE_PRIVACYLEVEL, CHAT_LOBBY_PRIVACY_LEVEL_PUBLIC); ui.lobbyTreeWidget->insertTopLevelItem(3, publicLobbyItem); - ui.lobbyTreeWidget->expandAll(); + ui.lobbyTreeWidget->expandItem(privateSubLobbyItem); + ui.lobbyTreeWidget->expandItem(publicSubLobbyItem); + ui.lobbyTreeWidget->expandItem(privateLobbyItem); + // ui.lobbyTreeWidget->expandItem(publicLobbyItem); ui.lobbyTreeWidget->setColumnHidden(COLUMN_NAME,false) ; ui.lobbyTreeWidget->setColumnHidden(COLUMN_USER_COUNT,true) ; ui.lobbyTreeWidget->setColumnHidden(COLUMN_TOPIC,true) ;