diff options
author | Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> | 2011-08-19 13:31:55 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-08-19 18:58:47 (GMT) |
commit | dbf0abbe8648ca72a7126c24f5983b2ed4b6c94d (patch) | |
tree | 4dd3f5038fe1f5e174604ae6fd63093a32e59a80 | |
parent | 45ee9d006bf2de28f5aba08fdb52b986b3019cb9 (diff) | |
download | swift-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.cpp | 1 |
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); |