aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-irc-network-chooser-dialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-irc-network-chooser-dialog.c b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
index dc7445fd5..8dce07389 100644
--- a/libempathy-gtk/empathy-irc-network-chooser-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-chooser-dialog.c
@@ -345,12 +345,13 @@ remove_network (EmpathyIrcNetworkChooserDialog *self)
EmpathyIrcNetwork *network;
GtkTreeIter iter;
- gtk_widget_hide (priv->search);
-
network = dup_selected_network (self, &iter);
if (network == NULL)
return;
+ /* Hide the search after picking the network to get the right one */
+ gtk_widget_hide (priv->search);
+
DEBUG ("Remove network %s", empathy_irc_network_get_name (network));
gtk_list_store_remove (priv->store, &iter);