file-open-location: don't close dialog if no file was opened

This commit is contained in:
Edward E 2018-03-31 12:03:51 -05:00 committed by Michael Natterer
parent a4b366f494
commit 019af3dacb
1 changed files with 6 additions and 4 deletions

View File

@ -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