mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
d8446a7f90
commit
d8e9b7d77e
|
@ -724,7 +724,6 @@ void Widget::onChatroomWidgetClicked(GenericChatroomWidget *widget)
|
|||
if (!widget->getStatusString().isNull())
|
||||
windowTitle += " (" + widget->getStatusString() + ")";
|
||||
setWindowTitle(windowTitle);
|
||||
|
||||
}
|
||||
|
||||
void Widget::onFriendMessageReceived(int friendId, const QString& message, bool isAction)
|
||||
|
@ -776,6 +775,8 @@ void Widget::newMessageAlert(GenericChatroomWidget* chat)
|
|||
|
||||
if (Settings::getInstance().getShowWindow())
|
||||
{
|
||||
if (activeChatroomWidget != chat)
|
||||
onChatroomWidgetClicked(chat);
|
||||
show();
|
||||
if (inactiveWindow && Settings::getInstance().getShowInFront())
|
||||
setWindowState(Qt::WindowActive);
|
||||
|
|
Loading…
Reference in New Issue
Block a user