had:处理Console断开后自动退出。

This commit is contained in:
2025-11-15 12:47:56 +08:00
parent 81604e003a
commit 599e5524d4
2 changed files with 6 additions and 0 deletions

View File

@@ -42,5 +42,10 @@ int main(int argc, char* argv[])
helper->RunWorker(core.get());
helper->Connect();
QObject::connect(core.get(), &ClientCore::sigDisconnect, [&app](){
qWarning() << "Abnormal state, quit...";
app.exit();
});
return app.exec();
}