Skip to content

Commit

Permalink
fix: app quit failed
Browse files Browse the repository at this point in the history
delete app quit setting in main.cpp

Log: bug fix
Change-Id: I53053fc5eef052f45e582b9da03aa4792822c954
  • Loading branch information
deepin-mozart committed Nov 27, 2023
1 parent ac988d8 commit c52bfad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ int main(int argc, char *argv[])

DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setQuitOnLastWindowClosed(false);
CommandParser::instance().process();

// TODO(Any): put to command processor
Expand Down
3 changes: 3 additions & 0 deletions src/framework/lifecycle/private/pluginmanager_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ bool PluginManagerPrivate::startPlugin(PluginMetaObjectPointer &pluginMetaObj)
*/
void PluginManagerPrivate::stopPlugin(PluginMetaObjectPointer &pluginMetaObj)
{
if (!pluginMetaObj->d->plugin)
return;

dpfCheckTimeBegin();

//流程互斥
Expand Down
1 change: 0 additions & 1 deletion src/plugins/option/optioncore/optioncore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,5 @@ bool OptionCore::start()

dpf::Plugin::ShutdownFlag OptionCore::stop()
{
delete OptionDefaultKeeper::getOptionDialog();
return Sync;
}

0 comments on commit c52bfad

Please sign in to comment.