From bef7ba1976937c9c6cf6ad22a4c15264cf9ae9f0 Mon Sep 17 00:00:00 2001 From: ut001910 Date: Wed, 11 Sep 2024 10:42:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=85=B3=E9=97=AD=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化保存后关闭提示 Bug: https://pms.uniontech.com/bug-view-269141.html Log: 优化保存后关闭提示 --- src/drawboard/drawboard/drawboard/context/pagecontext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drawboard/drawboard/drawboard/context/pagecontext.cpp b/src/drawboard/drawboard/drawboard/context/pagecontext.cpp index 073e9bf9a..f6b63de33 100644 --- a/src/drawboard/drawboard/drawboard/context/pagecontext.cpp +++ b/src/drawboard/drawboard/drawboard/context/pagecontext.cpp @@ -300,8 +300,10 @@ bool PageContext::save(const QString &file) if (page() != nullptr && page()->borad() != nullptr) { QFileInfo info(filePath); if ("ddf" == info.suffix().toLower()) { + d_PageContext()->_dirty = 0; return page()->borad()->fileHander()->saveToDdf(this, filePath); } else { + d_PageContext()->_dirty = 0; return page()->borad()->fileHander()->saveToImage(this, filePath); } }