diff --git a/glade/plugin_dialog.glade b/glade/plugin_dialog.glade
index e4dd17aef..228057f2f 100644
--- a/glade/plugin_dialog.glade
+++ b/glade/plugin_dialog.glade
@@ -127,7 +127,7 @@
gtk-close
True
0
-
+
diff --git a/src/dialogs.py b/src/dialogs.py
index 3b7ddf5e0..8f90c7e48 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -141,8 +141,8 @@ class PreferencesDlg:
self.glade.get_widget('spin_port_min').set_sensitive(True)
self.glade.get_widget('spin_port_max').set_sensitive(True)
- self.glade.get_widget("ok_button").connect("pressed", self.ok_pressed, interface)
- self.glade.get_widget("cancel_button").connect("pressed", self.cancel_pressed)
+ self.glade.get_widget("ok_button").connect("clicked", self.ok_pressed, interface)
+ self.glade.get_widget("cancel_button").connect("clicked", self.cancel_pressed)
except KeyError:
pass