mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-12 07:37:35 +00:00
window: Don't unhibit with 0 cookie
The upper layers do not bother whether there's an inhibitor when calling uninhibit (and shouldn't) so don't put out out warning when called with 0 cookie. Closes: #249
This commit is contained in:
parent
b04d564bcf
commit
55559d91db
1 changed files with 3 additions and 2 deletions
|
@ -180,8 +180,9 @@ session_inhibit (CallsCallWindow *self, gboolean inhibit)
|
|||
}
|
||||
else
|
||||
{
|
||||
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
|
||||
self->inhibit_cookie);
|
||||
if (self->inhibit_cookie != 0)
|
||||
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
|
||||
self->inhibit_cookie);
|
||||
self->inhibit_cookie = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue