Skip to content

Commit

Permalink
fix: 完善95516 bug【服务器企业版】【文本编辑器】【5.9.14.3】将两个草稿文件重复命名,替换保存后标签页文件名前有*显示;
Browse files Browse the repository at this point in the history
Description: 完善95516 bug【服务器企业版】【文本编辑器】【5.9.14.3】将两个草稿文件重复命名,替换保存后标签页文件名前有*显示;

Log: 完善95516 bug【服务器企业版】【文本编辑器】【5.9.14.3】将两个草稿文件重复命名,替换保存后标签页文件名前有*显示;

link: https://pms.uniontech.com/zentao/bug-view-95516.html
Change-Id: Ib0cb4a42b55209740c8fc6e54341fe16b6ad4c02
  • Loading branch information
guoshaoyu committed Nov 18, 2021
1 parent 4ab6bb9 commit 9e6e379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/editor/dtextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ TextEdit::TextEdit(QWidget *parent)
{
setUndoRedoEnabled(false);
//撤销重做栈
m_pUndoStack = new QUndoStack(this);
m_pUndoStack = new QUndoStack();

m_nLines = 0;
m_nBookMarkHoverLine = -1;
Expand Down Expand Up @@ -172,6 +172,10 @@ TextEdit::~TextEdit()
delete m_rightMenu;
m_rightMenu = nullptr;
}

if (m_pUndoStack != nullptr) {
m_pUndoStack->deleteLater();
}
}

void TextEdit::insertTextEx(QTextCursor cursor, QString text)
Expand Down

0 comments on commit 9e6e379

Please sign in to comment.