mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Make tool buttons inactive when showing profile
This commit is contained in:
parent
8d91997ae5
commit
4e1dd74269
|
@ -547,6 +547,7 @@ void Widget::showProfile() // onAvatarClicked, onUsernameClicked
|
|||
|
||||
void Widget::hideMainForms()
|
||||
{
|
||||
setActiveToolMenuButton(Widget::None);
|
||||
QLayoutItem* item;
|
||||
while ((item = ui->mainHead->layout()->takeAt(0)) != 0)
|
||||
item->widget()->hide();
|
||||
|
@ -736,7 +737,6 @@ void Widget::onFriendUsernameChanged(int friendId, const QString& username)
|
|||
void Widget::onChatroomWidgetClicked(GenericChatroomWidget *widget)
|
||||
{
|
||||
hideMainForms();
|
||||
setActiveToolMenuButton(Widget::None);
|
||||
widget->setChatForm(*ui);
|
||||
if (activeChatroomWidget != nullptr)
|
||||
activeChatroomWidget->setAsInactiveChatroom();
|
||||
|
|
Loading…
Reference in New Issue
Block a user