fix some crashes, mostly related to network requests (#6187)
This commit is contained in:
+4
-4
@@ -282,13 +282,13 @@ void runGui(QApplication &a, const Paths &paths, Settings &settings,
|
||||
|
||||
QObject::connect(qApp, &QApplication::aboutToQuit, [] {
|
||||
auto *app = dynamic_cast<Application *>(tryGetApp());
|
||||
if (app)
|
||||
{
|
||||
app->save();
|
||||
}
|
||||
assert(app != nullptr);
|
||||
app->aboutToQuit();
|
||||
|
||||
getSettings()->requestSave();
|
||||
getSettings()->disableSave();
|
||||
|
||||
app->stop();
|
||||
});
|
||||
|
||||
Application app(settings, paths, args, updates);
|
||||
|
||||
Reference in New Issue
Block a user