mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Refactor: simplify closeRequest and remove closed signal
This commit is contained in:
parent
e10dd4ef42
commit
704db020de
11 changed files with 62 additions and 52 deletions
|
|
@ -173,11 +173,11 @@ void TabRoom::actShowPopup(const QString &message)
|
|||
}
|
||||
}
|
||||
|
||||
void TabRoom::closeRequest(bool /*forced*/)
|
||||
void TabRoom::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
sendRoomCommand(prepareRoomCommand(Command_LeaveRoom()));
|
||||
emit roomClosing(this);
|
||||
close();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void TabRoom::tabActivated()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue