mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Remove widgets with removing the layout in bulk edit.
This commit is contained in:
parent
bfdc51a2dd
commit
ff978282c7
@ -210,6 +210,11 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
|
||||
# Remove all controls from the dialog box by deleting the top layout
|
||||
if self.layout():
|
||||
import sip
|
||||
while True:
|
||||
child = self.layout().takeAt(0)
|
||||
if not child:
|
||||
break;
|
||||
sip.delete(child)
|
||||
sip.delete(self.layout())
|
||||
|
||||
self.setupUi(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user