mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
add close to add models
This commit is contained in:
parent
f2d0df5fc1
commit
314ec1957a
2 changed files with 2 additions and 2 deletions
|
@ -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()]
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue