[evolution] I#238 - [ECollectionAccountWizard] Clear old results before starting any worker



commit 5e4714c64e79effd4e5917260e7944ade727461a
Author: Milan Crha <mcrha redhat com>
Date:   Fri Dec 7 08:05:29 2018 +0100

    I#238 - [ECollectionAccountWizard] Clear old results before starting any worker
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/238

 src/e-util/e-collection-account-wizard.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/e-util/e-collection-account-wizard.c b/src/e-util/e-collection-account-wizard.c
index bd36ed5b96..e2192340f4 100644
--- a/src/e-util/e-collection-account-wizard.c
+++ b/src/e-util/e-collection-account-wizard.c
@@ -399,10 +399,8 @@ collection_account_wizard_worker_started_cb (EConfigLookup *config_lookup,
        wd = g_hash_table_lookup (wizard->priv->workers, worker);
        g_return_if_fail (wd != NULL);
 
-       if (wizard->priv->changed) {
+       if (wizard->priv->changed)
                wizard->priv->changed = FALSE;
-               e_config_lookup_clear_results (wizard->priv->config_lookup);
-       }
 
        wizard->priv->running_workers++;
 
@@ -2531,6 +2529,8 @@ e_collection_account_wizard_run (ECollectionAccountWizard *wizard,
        g_return_if_fail (E_IS_COLLECTION_ACCOUNT_WIZARD (wizard));
        g_return_if_fail (e_collection_account_wizard_get_can_run (wizard));
 
+       e_config_lookup_clear_results (wizard->priv->config_lookup);
+
        wizard->priv->running_result = e_simple_async_result_new (G_OBJECT (wizard), callback, user_data, 
e_collection_account_wizard_run);
 
        g_hash_table_iter_init (&iter, wizard->priv->workers);


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