mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Ensure Qt doesn't prevent quit due to ignored widget close events
This commit is contained in:
parent
198528f79f
commit
5e3e9ba824
1 changed files with 4 additions and 1 deletions
|
@ -255,7 +255,10 @@ void Sandbox::setupScreenScale() {
|
|||
Sandbox::~Sandbox() = default;
|
||||
|
||||
bool Sandbox::event(QEvent *e) {
|
||||
if (e->type() == QEvent::Quit && !Quitting()) {
|
||||
if (e->type() == QEvent::Quit) {
|
||||
if (Quitting()) {
|
||||
return QCoreApplication::event(e);
|
||||
}
|
||||
Quit(QuitReason::QtQuitEvent);
|
||||
e->ignore();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue