setting works
diff --git a/settingdialog.cpp b/settingdialog.cpp
index 8719a84..be0bb42 100644
--- a/settingdialog.cpp
+++ b/settingdialog.cpp
@@ -8,5 +8,12 @@
   roomEdit->setPlaceholderText(chatroom);
   prefixEdit->setPlaceholderText(prefix);
   connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
-  connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
+  connect(okButton, SIGNAL(clicked()), this, SLOT(update()));
+}
+
+void
+SettingDialog::update() 
+{
+  emit updated(nickEdit->text(), roomEdit->text(), prefixEdit->text()); 
+  accept();
 }