[geary/wip/ricotz/error-check] Actually use error variable to check for IOError.CANCELLED



commit 088cb2c0aa35ad4b54ea5a0a2edaf0ff96c64b45
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Nov 27 14:53:56 2018 +0100

    Actually use error variable to check for IOError.CANCELLED

 src/client/application/geary-controller.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 3e6c8fcb..6bfeaab9 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -2599,7 +2599,7 @@ public class GearyController : Geary.BaseObject {
             yield do_empty_folder_async(emptyable, cancellable);
         } catch (Error err) {
             // don't report to user if cancelled
-            if (cancellable is IOError.CANCELLED)
+            if (err is IOError.CANCELLED)
                 return;
             
             ErrorDialog dialog = new ErrorDialog(main_window,


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