diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-11 22:54:45 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-11 22:54:45 +0100 |
| commit | 4fa44fe37e9b2f9837f7fcbaf9361f9675669782 (patch) | |
| tree | ac7bdaa0ada28d4cf2d9001ad6de8e76fc2155ff /src/settingsdialogplugins.cpp | |
| parent | 90beed8c7b356ef58431721ffe8eb4abff3da032 (diff) | |
Remove duplicate dependencies.
Diffstat (limited to 'src/settingsdialogplugins.cpp')
| -rw-r--r-- | src/settingsdialogplugins.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/settingsdialogplugins.cpp b/src/settingsdialogplugins.cpp index e9d36c57..556cadcb 100644 --- a/src/settingsdialogplugins.cpp +++ b/src/settingsdialogplugins.cpp @@ -242,12 +242,13 @@ void PluginsSettingsTab::on_checkboxEnabled_clicked(bool checked) for (auto& p : proxied) { pluginNames.append(p->localizedName()); } + pluginNames.removeDuplicates(); pluginNames.sort(); QString message = QObject::tr( - "<p>Disabling this plugin will prevent the following plugins from working correctly:</p><ul>%1</ul>" + "<p>Disabling this plugin will prevent the following plugins from working:</p><ul>%1</ul>" "<p>Do you want to continue? You will need to restart ModOrganizer2 for the change to take effect.</p>") .arg("<li>" + pluginNames.join("</li><li>") + "</li>"); - if (QMessageBox::warning( + if (QMessageBox::critical( parentWidget(), QObject::tr("Really disable plugin?"), message, QMessageBox::Yes | QMessageBox::No) == QMessageBox::No) { ui->enabledCheckbox->setChecked(true); @@ -263,6 +264,7 @@ void PluginsSettingsTab::on_checkboxEnabled_clicked(bool checked) for (auto& p : requiredFor) { pluginNames.append(p->localizedName()); } + pluginNames.removeDuplicates(); pluginNames.sort(); QString message = QObject::tr( "<p>Disabling this plugin will also disable the following plugins:</p><ul>%1</ul><p>Do you want to continue?</p>") |
