Commit f0e5a81a authored by Krzesimir Nowak's avatar Krzesimir Nowak Committed by Christian Hergert
Browse files

workbench: Do not abort on failed precondition in public function

It was aborting gnome-shell, when downloading the flatpak failed.

https://bugzilla.gnome.org/show_bug.cgi?id=779802
parent 125b731a
......@@ -484,9 +484,9 @@ ide_workbench_open_project_async (IdeWorkbench *self,
{
g_autoptr(GTask) task = NULL;
g_assert (IDE_IS_WORKBENCH (self));
g_assert (G_IS_FILE (file_or_directory));
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
g_return_if_fail (IDE_IS_WORKBENCH (self));
g_return_if_fail (G_IS_FILE (file_or_directory));
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
task = g_task_new (self, cancellable, callback, user_data);
......
Supports Markdown
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