Skip to content

Commit

Permalink
fix: 优化保存后关闭提示 (#121)
Browse files Browse the repository at this point in the history
优化保存后关闭提示

Bug: https://pms.uniontech.com/bug-view-269141.html
Log: 优化保存后关闭提示
  • Loading branch information
pengfeixx authored Dec 10, 2024
1 parent cf0d3ee commit 697cb23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drawshape/cdrawparamsigleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,10 @@ bool PageContext::save(const QString &file)
if (page() != nullptr && page()->borad() != nullptr) {
QFileInfo info(filePath);
if ("ddf" == info.suffix().toLower()) {
_dirty = 0;
rs = page()->borad()->fileHander()->saveToDdf(this, filePath);
} else {
_dirty = 0;
rs = page()->borad()->fileHander()->saveToImage(this, filePath);
//保存成功
if (rs) {
Expand Down

0 comments on commit 697cb23

Please sign in to comment.