summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnt Gulbrandsen <arnt@gulbrandsen.priv.no>2011-08-19 13:31:55 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-08-19 18:58:47 (GMT)
commitdbf0abbe8648ca72a7126c24f5983b2ed4b6c94d (patch)
tree4dd3f5038fe1f5e174604ae6fd63093a32e59a80
parent45ee9d006bf2de28f5aba08fdb52b986b3019cb9 (diff)
downloadswift-dbf0abbe8648ca72a7126c24f5983b2ed4b6c94d.zip
swift-dbf0abbe8648ca72a7126c24f5983b2ed4b6c94d.tar.bz2
Pressing enter accepts the changes made.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
-rw-r--r--Swift/QtUI/QtContactEditWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtContactEditWindow.cpp b/Swift/QtUI/QtContactEditWindow.cpp
index 4be2939..9b24b23 100644
--- a/Swift/QtUI/QtContactEditWindow.cpp
+++ b/Swift/QtUI/QtContactEditWindow.cpp
@@ -42,6 +42,7 @@ QtContactEditWindow::QtContactEditWindow() : contactEditWidget_(NULL) {
connect(removeButton, SIGNAL(clicked()), this, SLOT(handleRemoveContact()));
buttonLayout->addWidget(removeButton);
QPushButton* okButton = new QPushButton(tr("OK"), this);
+ okButton->setDefault( true );
connect(okButton, SIGNAL(clicked()), this, SLOT(handleUpdateContact()));
buttonLayout->addStretch();
buttonLayout->addWidget(okButton);