[gimp] file-open-location: don't close dialog if no file was opened
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-open-location: don't close dialog if no file was opened
- Date: Sun, 1 Apr 2018 10:49:54 +0000 (UTC)
commit 019af3dacb92e18179d60951cad890b4c87ab7c8
Author: Edward E <develinthedetail gmail com>
Date: Sat Mar 31 12:03:51 2018 -0500
file-open-location: don't close dialog if no file was opened
app/dialogs/file-open-location-dialog.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/dialogs/file-open-location-dialog.c b/app/dialogs/file-open-location-dialog.c
index 462b1a5..1c8fc8b 100644
--- a/app/dialogs/file-open-location-dialog.c
+++ b/app/dialogs/file-open-location-dialog.c
@@ -226,6 +226,12 @@ file_open_location_response (GtkDialog *dialog,
}
g_object_unref (file);
+
+ if (image != NULL)
+ {
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+ return;
+ }
}
else
{
@@ -233,12 +239,8 @@ file_open_location_response (GtkDialog *dialog,
_("Opening '%s' failed:\n\n%s"),
text, error->message);
g_clear_error (&error);
-
- return;
}
}
-
- gtk_widget_destroy (GTK_WIDGET (dialog));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]