From 599e5524d49d5f5a36a80319d99aa2dc177e514f Mon Sep 17 00:00:00 2001 From: taynpg Date: Sat, 15 Nov 2025 12:47:56 +0800 Subject: [PATCH] =?UTF-8?q?had=EF=BC=9A=E5=A4=84=E7=90=86Console=E6=96=AD?= =?UTF-8?q?=E5=BC=80=E5=90=8E=E8=87=AA=E5=8A=A8=E9=80=80=E5=87=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Console/main.cpp | 5 +++++ Note/version.md | 1 + 2 files changed, 6 insertions(+) diff --git a/Console/main.cpp b/Console/main.cpp index 74d7e47..65eadd8 100644 --- a/Console/main.cpp +++ b/Console/main.cpp @@ -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(); } diff --git a/Note/version.md b/Note/version.md index ca7ac27..9c7b141 100644 --- a/Note/version.md +++ b/Note/version.md @@ -8,6 +8,7 @@ | 序号 | 类型 | 内容 | 说明 | 基于版本 | 完成版本 | | :--: | :--: | ------------------------------------------------------------ | :--: | :------: | :------: | +| 39 | 优化 | Console端断联后应当自动退出。 | | 0.2.3 | 0.2.4 | | 38 | 功能 | PE中使用没有拖拽功能,文件管理器要有下载/上传按钮。 | | 0.2.3 | | | 37 | 问题 | 未连接对方客户端时,执行对照传输会崩溃。 | | 0.2.3 | | | 36 | 功能 | 备份文件功能。 | | 0.2.3 | |