cabana: fix merging sources for already open DBC file (#27715)

* fix build

* fix merging sources
This commit is contained in:
Willem Melching
2023-03-29 22:17:46 +02:00
committed by GitHub
parent d6961152b8
commit e0afaa4eee
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ bool DBCManager::open(SourceSet s, const QString &dbc_file_name, QString *error)
// Check if file is already open, and merge sources
if (dbc_file->filename == dbc_file_name) {
ss |= s;
dbc_files[i] = {ss | s, dbc_file};
emit DBCFileChanged();
return true;
}
+2
View File
@@ -1,6 +1,8 @@
#pragma once
#include <map>
#include <optional>
#include <QList>
#include <QMetaType>
#include <QObject>