From 9f42f5858bbbc3c689f2ed1aedf890341bbffba6 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Wed, 24 Apr 2024 15:04:27 +0200 Subject: [PATCH] Fix baudrate disabled. Allow loading multiple configuration files in one plugin separated by |. Signed-off-by: Alexander Wenzel --- src/ecudialog.ui | 4 ++-- src/plugindialog.cpp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ecudialog.ui b/src/ecudialog.ui index c926f998..eabb3318 100644 --- a/src/ecudialog.ui +++ b/src/ecudialog.ui @@ -420,10 +420,10 @@ - false + true - true + false -1 diff --git a/src/plugindialog.cpp b/src/plugindialog.cpp index 2a76da7e..9ad1169a 100644 --- a/src/plugindialog.cpp +++ b/src/plugindialog.cpp @@ -80,10 +80,14 @@ void PluginDialog::on_toolButton_clicked() { if(ui->comboBoxType->currentIndex()==0) { // filename - fileName = QFileDialog::getOpenFileName(this, + QStringList fileNames = QFileDialog::getOpenFileNames(this, QString("Open ")+name+QString(" configuration file"), workingDirectory.getPluginDirectory(name), tr("Plugin configuration (*.*)")); + if(fileNames.size()==1) + fileName = fileNames[0]; + else if(fileNames.size()>1) + fileName = fileNames.join('|'); } else {