summaryrefslogtreecommitdiff
path: root/src/simple-scan.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-02-18 12:53:04 +0100
committerJörg Frings-Fürst <debian@jff.email>2021-02-18 12:53:04 +0100
commit7b6f128a25c5ca245f46247ba40572672cdf400b (patch)
tree604832b3cffdf20b13a5b1a09434e9a806cf3674 /src/simple-scan.vala
parentee6f7618785519daa986955db561166cc58a3633 (diff)
parentc2bb4f98199d9054f82b538ff44f895a8399bb28 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/simple-scan.vala')
-rw-r--r--src/simple-scan.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 3f495e5..84d8a8c 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -1773,7 +1773,7 @@ public class SimpleScan : Gtk.Application
* but will not work on KDE, LXDE, XFCE, ... */
inhibit_cookie = inhibit (app, Gtk.ApplicationInhibitFlags.IDLE, reason);
- if (!is_inhibited (Gtk.ApplicationInhibitFlags.IDLE))
+ if (inhibit_cookie == 0)
{
/* If the previous method didn't work, try the one
* provided by Freedesktop. It should work with KDE,