[eog] EogWindow: Convert bitwise operation into proper boolean logic



commit 574af539b74c97460f2b12fc39e4b5d37954c95f
Author: Felix Riemann <friemann gnome org>
Date:   Sun Nov 22 16:51:23 2020 +0100

    EogWindow: Convert bitwise operation into proper boolean logic
    
    The result was the same though.

 src/eog-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index aada655e..65ed41a8 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2418,7 +2418,7 @@ eog_window_unsaved_images_confirm (EogWindow *window)
                                        EOG_CONF_UI_DISABLE_CLOSE_CONFIRMATION);
        disabled |= window->priv->save_disabled;
 
-       if (disabled | !priv->store) {
+       if (disabled || !priv->store) {
                return FALSE;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]