diff --git a/resources/16x16/dialog-cancel.png b/resources/16x16/dialog-cancel.png new file mode 100644 index 000000000..5196d4333 Binary files /dev/null and b/resources/16x16/dialog-cancel.png differ diff --git a/resources/resources.qrc b/resources/resources.qrc index d9da4e3bf..991d1bfc4 100644 --- a/resources/resources.qrc +++ b/resources/resources.qrc @@ -6,6 +6,7 @@ 16x16/application-exit.png 16x16/arrow-right.png 16x16/configure.png + 16x16/dialog-cancel.png 16x16/dialog-error.png 16x16/dialog-information.png 16x16/dialog-ok-apply.png diff --git a/resources/ui/carla_database.ui b/resources/ui/carla_database.ui index 89d337dac..c5a648bd5 100644 --- a/resources/ui/carla_database.ui +++ b/resources/ui/carla_database.ui @@ -339,6 +339,17 @@ + + + + Cancel + + + + :/16x16/dialog-cancel.png:/16x16/dialog-cancel.png + + + diff --git a/source/carla_database.py b/source/carla_database.py index 1646d5832..dac3efcdf 100755 --- a/source/carla_database.py +++ b/source/carla_database.py @@ -1162,6 +1162,7 @@ class PluginDatabaseW(QDialog): self.finished.connect(self.slot_saveSettings) self.ui.b_add.clicked.connect(self.slot_addPlugin) + self.ui.b_cancel.clicked.connect(self.reject) self.ui.b_refresh.clicked.connect(self.slot_refreshPlugins) self.ui.tb_filters.clicked.connect(self.slot_maybeShowFilters) self.ui.lineEdit.textChanged.connect(self.slot_checkFilters)