[nautilus] Bug 583214 – Nautilus aborts when giving an empty dest.
- From: Andrew Walton <awalton src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus] Bug 583214 – Nautilus aborts when giving an empty dest.
- Date: Tue, 19 May 2009 11:12:23 -0400 (EDT)
commit 2a005bc2c308e3960e723ed5cc8748f168acda17
Author: A. Walton <awalton gnome org>
Date: Tue May 19 11:08:51 2009 -0400
Bug 583214 â?? Nautilus aborts when giving an empty dest.
Fixes crash caused by passing a null path.
---
src/nautilus-location-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/nautilus-location-dialog.c b/src/nautilus-location-dialog.c
index 1ef58a7..7f187c9 100644
--- a/src/nautilus-location-dialog.c
+++ b/src/nautilus-location-dialog.c
@@ -122,7 +122,9 @@ entry_activate_callback (GtkEntry *entry,
NautilusLocationDialog *dialog;
dialog = NAUTILUS_LOCATION_DIALOG (user_data);
- gtk_dialog_response (GTK_DIALOG (dialog), RESPONSE_OPEN);
+
+ if (gtk_entry_get_text_length (GTK_ENTRY (dialog->details->entry)) != 0)
+ gtk_dialog_response (GTK_DIALOG (dialog), RESPONSE_OPEN);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]