Commit 8384c295 authored by Robert Ancell's avatar Robert Ancell Committed by Georges Basile Stavracas Neto

region: Cancel async permission requests when panel is closed


(cherry picked from commit 37d02369)
parent c8d19ed0
Pipeline #29812 passed with stages
in 3 minutes and 37 seconds
......@@ -524,7 +524,7 @@ activate_language_row (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = CHOOSE_LANGUAGE;
g_permission_acquire_async (self->permission,
NULL,
self->cancellable,
permission_acquired,
self);
}
......@@ -534,7 +534,7 @@ activate_language_row (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = CHOOSE_REGION;
g_permission_acquire_async (self->permission,
NULL,
self->cancellable,
permission_acquired,
self);
}
......@@ -1069,7 +1069,7 @@ add_input (CcRegionPanel *self)
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = ADD_INPUT;
g_permission_acquire_async (self->permission,
NULL,
self->cancellable,
permission_acquired,
self);
}
......@@ -1130,7 +1130,7 @@ remove_selected_input (CcRegionPanel *self)
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = REMOVE_INPUT;
g_permission_acquire_async (self->permission,
NULL,
self->cancellable,
permission_acquired,
self);
}
......@@ -1180,7 +1180,7 @@ move_selected_input (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = op;
g_permission_acquire_async (self->permission,
NULL,
self->cancellable,
permission_acquired,
self);
}
......
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