make sure we call .reset() on the main window, not the parent when deleting model

This commit is contained in:
Damien Elmes 2011-01-21 07:48:28 +09:00
parent f6407b8d4c
commit 34e2b9a71e

View file

@ -136,7 +136,7 @@ class DeckProperties(QDialog):
self.d.deleteModel(model) self.d.deleteModel(model)
self.updateModelsList() self.updateModelsList()
self.dialog.modelsList.setCurrentRow(row) self.dialog.modelsList.setCurrentRow(row)
self.parent.reset() ankiqt.mw.reset()
def selectedModel(self): def selectedModel(self):
row = self.dialog.modelsList.currentRow() row = self.dialog.modelsList.currentRow()