From 2b3f8a644f7b3484b59661153ffa06b810b683fc Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Sun, 14 Nov 2021 18:54:12 +0800 Subject: [PATCH] - fix: Shouldn't update auto link settings, if the header name to be modified is unchanged --- NEWS.md | 3 +++ RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/NEWS.md b/NEWS.md index 1af61294..d407b474 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Version 0.8.10 For Dev-C++ 7 Beta + - fix: Shouldn't update auto link settings, if the header name to be modified is unchanged + Version 0.8.9 For Dev-C++ 7 Beta - fix: text color of labels in statusbar not correctly updated when change theme diff --git a/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp b/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp index 74bf6cae..bb4dc463 100644 --- a/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp +++ b/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp @@ -110,6 +110,8 @@ bool AutolinkModel::setData(const QModelIndex &index, const QVariant &value, int if (index.column() == 0) { if (s.isEmpty()) return false; + if (link->header == s) + return false; if (findLink(s)>=0) { QMessageBox::warning(pMainWindow, tr("Header exists"),