mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix using the configure this device menu action not validating settings
This commit is contained in:
parent
cba99f2db7
commit
7a5049d2a1
@ -889,6 +889,10 @@ class DeviceMixin(object): # {{{
|
||||
bb.rejected.connect(d.reject)
|
||||
l.addWidget(cw)
|
||||
l.addWidget(bb)
|
||||
def validate():
|
||||
if cw.validate():
|
||||
QDialog.accept(d)
|
||||
d.accept = validate
|
||||
if d.exec_() == d.Accepted:
|
||||
dev.save_settings(cw)
|
||||
warning_dialog(self, _('Disconnect device'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user