mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
prevent null crash
This commit is contained in:
parent
cbea43267e
commit
27969b6752
2 changed files with 12 additions and 5 deletions
|
|
@ -160,8 +160,8 @@ void TabRoom::focusTab() {
|
|||
}
|
||||
|
||||
void TabRoom::actShowMentionPopup(QString &sender) {
|
||||
if (tabSupervisor->currentIndex() != tabSupervisor->indexOf(this)
|
||||
|| QApplication::activeWindow() == 0 || QApplication::focusWidget() == 0) {
|
||||
if (trayIcon && (tabSupervisor->currentIndex() != tabSupervisor->indexOf(this) || QApplication::activeWindow() == 0
|
||||
|| QApplication::focusWidget() == 0)) {
|
||||
disconnect(trayIcon, SIGNAL(messageClicked()), 0, 0);
|
||||
trayIcon->showMessage(sender + tr(" mentioned you."), tr("Click to view"));
|
||||
connect(trayIcon, SIGNAL(messageClicked()), chatView, SLOT(actMessageClicked()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue