mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 15:23:55 +02:00
Remove widgets with removing the layout in bulk edit.
This commit is contained in:
parent
bfdc51a2dd
commit
ff978282c7
1 changed files with 5 additions and 0 deletions
|
|
@ -210,6 +210,11 @@ def _initialize(self):
|
|||
# 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…
Reference in a new issue