[evolution/gnome-3-30] I#238 - [ECollectionAccountWizard] Clear old results before starting any worker
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-30] I#238 - [ECollectionAccountWizard] Clear old results before starting any worker
- Date: Fri, 7 Dec 2018 07:09:53 +0000 (UTC)
commit bc1e5f93e3b55f5e3b5bbb22d98fcfc9fce58326
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 e03f9fb65d..dea0f26ea1 100644
--- a/src/e-util/e-collection-account-wizard.c
+++ b/src/e-util/e-collection-account-wizard.c
@@ -195,10 +195,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++;
@@ -2299,6 +2297,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]