[geary] Enable users to attempt to recover from a scan error.



commit f991fa5f466368af752ed4bb719d250e30782cdc
Author: Michael James Gratton <mike vee net>
Date:   Thu Aug 2 20:27:14 2018 +1000

    Enable users to attempt to recover from a scan error.
    
    Report an IMAP service problem when a scan error occurs instead of an
    account problem, so a retry button is presented.

 src/client/application/geary-controller.vala | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index dc50b124..69860bc5 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -3038,10 +3038,13 @@ public class GearyController : Geary.BaseObject {
 
     private void on_scan_error(Geary.App.ConversationMonitor monitor, Error err) {
         // XXX determine the problem better here
+        Geary.AccountInformation account =
+            monitor.base_folder.account.information;
         report_problem(
-            new Geary.AccountProblemReport(
+            new Geary.ServiceProblemReport(
                 Geary.ProblemType.GENERIC_ERROR,
-                monitor.base_folder.account.information,
+                account,
+                account.imap,
                 err
             )
         );


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