default button for setting dialog to be ok
diff --git a/demo/settingdialog.cpp b/demo/settingdialog.cpp
index d9640dc..9cb54f4 100644
--- a/demo/settingdialog.cpp
+++ b/demo/settingdialog.cpp
@@ -15,7 +15,7 @@
   QValidator *validator = new QRegExpValidator(rx, this);
   prefixEdit->setValidator(validator);
 
-  cancelButton->setDefault(true);
+  okButton->setDefault(true);
 
   connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
   connect(okButton, SIGNAL(clicked()), this, SLOT(update()));