1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
We focus the chat form when we get a call now
This commit is contained in:
tux3 2015-06-06 21:44:49 +02:00
parent d8446a7f90
commit d8e9b7d77e
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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);