Delete the correct item

Fixes: https://launchpad.net/bugs/764651
This commit is contained in:
Tim Bentley 2011-04-18 16:30:32 +01:00
parent b436c34742
commit 3c8568443b

View File

@ -82,7 +82,9 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
item_name.setIcon(icon)
self.settingListWidget.insertItem(location, item_name)
else:
self.stackedLayout.takeAt(location)
# add then remove tab to stop th UI displaying it even if
# it is not required.
self.stackedLayout.takeAt(pos)
def accept(self):
"""