Commit 019af3da authored by Edward E.'s avatar Edward E. Committed by Michael Natterer

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

parent a4b366f4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment