From d1ccabbd6b46fa66c4b6469e714b6968a7bed95d Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Mon, 25 Oct 2021 09:35:13 +0800 Subject: [PATCH] - fix: compiler autolinks options widget don't show autolink infos --- NEWS.md | 1 + RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index 8c084257..63f48ff9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,7 @@ Version 0.7.3 - fix: can't correctly handle '&&' and '||' in the #if directive (and correctly parse windows.h header file) - fix: crash when create an empty project - fix: syntax issues' filepath info not correct when build projects + - fix: compiler autolinks options widget don't show autolink infos Version 0.7.2 - fix: rainbow parenthesis stop functioning when change editor's general options diff --git a/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp b/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp index f4c46c9a..74bf6cae 100644 --- a/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp +++ b/RedPandaIDE/settingsdialog/compilerautolinkwidget.cpp @@ -181,7 +181,9 @@ const QList &AutolinkModel::links() const void AutolinkModel::setLinks(const QMap &newLinks) { + beginResetModel(); mLinks = newLinks.values(); + endResetModel(); } int AutolinkModel::findLink(const QString &header)