add close to add models

This commit is contained in:
Damien Elmes 2012-04-06 10:56:52 +09:00
parent f2d0df5fc1
commit 314ec1957a
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ class AddModel(QDialog):
return self.model return self.model
def reject(self): def reject(self):
self.accept() QDialog.reject(self)
def accept(self): def accept(self):
(isStd, model) = self.models[self.dialog.models.currentRow()] (isStd, model) = self.models[self.dialog.models.currentRow()]

View file

@ -44,7 +44,7 @@
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="standardButtons"> <property name="standardButtons">
<set>QDialogButtonBox::Help|QDialogButtonBox::Ok</set> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property> </property>
</widget> </widget>
</item> </item>