mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't call alert() when a message in a public chat is received
This commit is contained in:
parent
a4c3d48389
commit
cc795a2dd7
4 changed files with 7 additions and 6 deletions
|
|
@ -101,7 +101,7 @@ void TabSupervisor::retranslateUi()
|
|||
|
||||
int TabSupervisor::myAddTab(Tab *tab)
|
||||
{
|
||||
connect(tab, SIGNAL(userEvent()), this, SLOT(tabUserEvent()));
|
||||
connect(tab, SIGNAL(userEvent(bool)), this, SLOT(tabUserEvent(bool)));
|
||||
return addTab(tab, tab->getTabText());
|
||||
}
|
||||
|
||||
|
|
@ -299,14 +299,15 @@ void TabSupervisor::talkLeft(TabMessage *tab)
|
|||
removeTab(indexOf(tab));
|
||||
}
|
||||
|
||||
void TabSupervisor::tabUserEvent()
|
||||
void TabSupervisor::tabUserEvent(bool globalEvent)
|
||||
{
|
||||
Tab *tab = static_cast<Tab *>(sender());
|
||||
if (tab != currentWidget()) {
|
||||
tab->setContentsChanged(true);
|
||||
setTabIcon(indexOf(tab), *tabChangedIcon);
|
||||
}
|
||||
QApplication::alert(this);
|
||||
if (globalEvent)
|
||||
QApplication::alert(this);
|
||||
}
|
||||
|
||||
void TabSupervisor::processRoomEvent(RoomEvent *event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue