- fix: Shouldn't update auto link settings, if the header name to be modified is unchanged
This commit is contained in:
parent
c59b9c9283
commit
2b3f8a644f
3
NEWS.md
3
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
|
Version 0.8.9 For Dev-C++ 7 Beta
|
||||||
- fix: text color of labels in statusbar not correctly updated when change theme
|
- fix: text color of labels in statusbar not correctly updated when change theme
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,8 @@ bool AutolinkModel::setData(const QModelIndex &index, const QVariant &value, int
|
||||||
if (index.column() == 0) {
|
if (index.column() == 0) {
|
||||||
if (s.isEmpty())
|
if (s.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
|
if (link->header == s)
|
||||||
|
return false;
|
||||||
if (findLink(s)>=0) {
|
if (findLink(s)>=0) {
|
||||||
QMessageBox::warning(pMainWindow,
|
QMessageBox::warning(pMainWindow,
|
||||||
tr("Header exists"),
|
tr("Header exists"),
|
||||||
|
|
Loading…
Reference in New Issue