mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
open-with-pk: don't set error if the user cancelled the installation
This commit is contained in:
parent
9df2c0910d
commit
e7194c31a7
@ -98,7 +98,10 @@ install_mime_types_ready_cb (GObject *source,
|
|||||||
variant = g_dbus_proxy_call_finish (proxy, res, &error);
|
variant = g_dbus_proxy_call_finish (proxy, res, &error);
|
||||||
|
|
||||||
if (variant == NULL) {
|
if (variant == NULL) {
|
||||||
|
/* don't show errors if the user cancelled the installation explicitely */
|
||||||
|
if (g_strcmp0 (g_dbus_error_get_remote_error (error), "org.freedesktop.PackageKit.Modify.Cancelled") != 0)
|
||||||
g_simple_async_result_set_from_error (self->priv->result, error);
|
g_simple_async_result_set_from_error (self->priv->result, error);
|
||||||
|
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user