Skip to content

Commit

Permalink
fix: [select-dialog] the select dialog app can not quit.
Browse files Browse the repository at this point in the history
1. the thumbnail thread is waiting.
2.use qapp->exit(), it will emit abouttoexit signal, so the thumbnai thread
can exit waiting state.

Log: fix issue
Bug: https://pms.uniontech.com/bug-view-211857.html
  • Loading branch information
GongHeng2017 authored and deepin-bot[bot] committed Jul 27, 2023
1 parent f322013 commit f52284e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "appexitcontroller.h"

#include <QDebug>
#include <QApplication>

using namespace filedialog_core;

Expand All @@ -23,9 +24,9 @@ void AppExitController::onExit()
}
qWarning() << "App exit!";
if (!confirmFunc)
exit(0);
if (confirmFunc && confirmFunc())
exit(0);
qApp->exit(0);
if (confirmFunc())
qApp->exit(0);
qWarning() << "App exit failed";
}

Expand Down

0 comments on commit f52284e

Please sign in to comment.