mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fixed issue with clicking on PM bubbles
Previously would not open the client if the window was minimized. Added the same popup fix for mentions
This commit is contained in:
parent
c07ec9aa23
commit
6b307469fe
9 changed files with 22 additions and 5 deletions
|
|
@ -118,9 +118,8 @@ void TabMessage::processUserMessageEvent(const Event_UserMessage &event)
|
|||
}
|
||||
|
||||
bool TabMessage::shouldShowSystemPopup(const Event_UserMessage &event) {
|
||||
return (event.sender_name() == otherUserInfo->name() &&
|
||||
tabSupervisor->currentIndex() != tabSupervisor->indexOf(this)) ||
|
||||
QApplication::activeWindow() == 0 || QApplication::focusWidget() == 0;
|
||||
return (QApplication::activeWindow() == 0 || QApplication::focusWidget() == 0 ||
|
||||
event.sender_name() == otherUserInfo->name() && tabSupervisor->currentIndex() != tabSupervisor->indexOf(this));
|
||||
}
|
||||
|
||||
void TabMessage::showSystemPopup(const Event_UserMessage &event) {
|
||||
|
|
@ -132,6 +131,7 @@ void TabMessage::showSystemPopup(const Event_UserMessage &event) {
|
|||
void TabMessage::messageClicked() {
|
||||
tabSupervisor->setCurrentIndex(tabSupervisor->indexOf(this));
|
||||
QApplication::setActiveWindow(this);
|
||||
emit maximizeClient();
|
||||
}
|
||||
|
||||
void TabMessage::processUserLeft()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue