cabana: do not emit DBCFileChanged if no file changes (#27800)

This commit is contained in:
Dean Lee
2023-04-05 01:47:54 +08:00
committed by GitHub
parent c5f5a3b5f2
commit 493d20994a
+2
View File
@@ -59,6 +59,8 @@ bool DBCManager::open(SourceSet s, const QString &name, const QString &content,
}
void DBCManager::closeAll() {
if (dbc_files.isEmpty()) return;
while (dbc_files.size()) {
DBCFile *dbc_file = dbc_files.back().second;
dbc_files.pop_back();