mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 20:39:39 +01:00
Fix using the configure this device menu action not validating settings
This commit is contained in:
parent
cba99f2db7
commit
7a5049d2a1
1 changed files with 4 additions and 0 deletions
|
|
@ -889,6 +889,10 @@ def configure_connected_device(self):
|
|||
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…
Reference in a new issue