From 314ec1957a45dde39fd7b00652058e2fd38c88a3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 6 Apr 2012 10:56:52 +0900 Subject: [PATCH] add close to add models --- aqt/models.py | 2 +- designer/addmodel.ui | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/models.py b/aqt/models.py index 68b79bbb0..de8efa04b 100644 --- a/aqt/models.py +++ b/aqt/models.py @@ -154,7 +154,7 @@ class AddModel(QDialog): return self.model def reject(self): - self.accept() + QDialog.reject(self) def accept(self): (isStd, model) = self.models[self.dialog.models.currentRow()] diff --git a/designer/addmodel.ui b/designer/addmodel.ui index 1ceda6b81..ee04a1d50 100644 --- a/designer/addmodel.ui +++ b/designer/addmodel.ui @@ -44,7 +44,7 @@ Qt::Horizontal - QDialogButtonBox::Help|QDialogButtonBox::Ok + QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok