summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2005-01-17 09:08:04 +0000
committerAlexander Larsson <alexl@src.gnome.org>2005-01-17 09:08:04 +0000
commit7b5f8f348c5de2277bcdf339a3436d1bc8e0739b (patch)
tree63c0f7c18b19aee492a7e91b73ed58832bbc4046
parent33840813f46b46a6c267378627e551ae2f577607 (diff)
downloadnautilus-7b5f8f348c5de2277bcdf339a3436d1bc8e0739b.tar.gz
Don't use destroyed dialog. Patch from Vincent Untz <vincent@vuntz.net>.
2005-01-17 Alexander Larsson <alexl@redhat.com> * src/nautilus-connect-server-dialog.c: (connect_to_server): Don't use destroyed dialog. Patch from Vincent Untz <vincent@vuntz.net>.
-rw-r--r--ChangeLog6
-rw-r--r--src/nautilus-connect-server-dialog.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c0228ef24..8d4355511 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-17 Alexander Larsson <alexl@redhat.com>
+
+ * src/nautilus-connect-server-dialog.c: (connect_to_server):
+ Don't use destroyed dialog.
+ Patch from Vincent Untz <vincent@vuntz.net>.
+
2005-01-16 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* src/file-manager/fm-icon-view.c: Applied patch from Tierry
diff --git a/src/nautilus-connect-server-dialog.c b/src/nautilus-connect-server-dialog.c
index 6701e5635..3788655c6 100644
--- a/src/nautilus-connect-server-dialog.c
+++ b/src/nautilus-connect-server-dialog.c
@@ -287,8 +287,7 @@ connect_to_server (NautilusConnectServerDialog *dialog)
}
gnome_vfs_connect_to_server (uri, name, icon);
- gtk_widget_destroy (GTK_WIDGET (dialog));
-
+ gtk_widget_hide (GTK_WIDGET (dialog));
if (!eel_preferences_get_boolean (NAUTILUS_PREFERENCES_ALWAYS_USE_BROWSER)) {
nautilus_connect_server_dialog_present_uri (dialog->details->application,
@@ -296,6 +295,8 @@ connect_to_server (NautilusConnectServerDialog *dialog)
GTK_WIDGET (dialog));
}
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+
g_free (uri);
g_free (name);
}