From b4b68fae176823cec6c39c9e22dec41cb8d4876d Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 9 Jan 2016 18:41:41 +0000 Subject: [PATCH] Add cancel button to add-plugin dialog Closes #343 --- resources/16x16/dialog-cancel.png | Bin 0 -> 714 bytes resources/resources.qrc | 1 + resources/ui/carla_database.ui | 11 +++++++++++ source/carla_database.py | 1 + 4 files changed, 13 insertions(+) create mode 100644 resources/16x16/dialog-cancel.png diff --git a/resources/16x16/dialog-cancel.png b/resources/16x16/dialog-cancel.png new file mode 100644 index 0000000000000000000000000000000000000000..5196d433399591e4bdc6073f8330e903d420b0fa GIT binary patch literal 714 zcmV;*0yX`KP)ypVO?pVPv2K+D9LWRcsZQs`+Odr^PczR0AyM`TbVrn z2p?KocSb8K=Yu?-dR|oYbF{4NSJ-6w7_F+BXS0j}iMqP(M+U?4c+FuX8yoT2=fjuw zcBH&s#Hy979eghKma^am0n0hI&k0^k7ibtugPW zfN84M&(hDGLE`i&bc@1buS(Sv)ajg0^!hz9OYTyv)`dxr2Ql{vFfU`$0U`S4aA`57 zE}Tbaj`+kr#w}LT@T@UD>m)m9?dd(6BBxzT~VqS(1!GocvsD1*dbzqn_j>V#qz9;k=gvrCajM;RM9?;=vQ}b(~JOOcn5KC*x&`P&FTY w-(`+VHOul!i_y4pB`Yh%w8$2h>A$b@Z`Lt11j{z4y#N3J07*qoM6N<$f}?p$y8r+H literal 0 HcmV?d00001 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)