mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Refactor: Simplify closeRequest and remove closed signal (#6062)
* Refactor: simplify closeRequest and remove closed signal * clean up closeRequest usages
This commit is contained in:
parent
fd12a1f6be
commit
04be0fe634
11 changed files with 61 additions and 57 deletions
|
|
@ -43,16 +43,7 @@ void Tab::deleteCardInfoPopup(const QString &cardName)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides the closeEvent in order to emit a close signal
|
||||
*/
|
||||
void Tab::closeEvent(QCloseEvent *event)
|
||||
bool Tab::closeRequest()
|
||||
{
|
||||
emit closed();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void Tab::closeRequest(bool /*forced*/)
|
||||
{
|
||||
close();
|
||||
return close();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue