Remove widgets with removing the layout in bulk edit.

This commit is contained in:
Charles Haley 2010-11-30 18:03:52 +00:00
parent bfdc51a2dd
commit ff978282c7

View File

@ -210,6 +210,11 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
# Remove all controls from the dialog box by deleting the top layout # Remove all controls from the dialog box by deleting the top layout
if self.layout(): if self.layout():
import sip import sip
while True:
child = self.layout().takeAt(0)
if not child:
break;
sip.delete(child)
sip.delete(self.layout()) sip.delete(self.layout())
self.setupUi(self) self.setupUi(self)