mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Ensure Qt doesn't prevent quit due to ignored widget close events
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user