diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-10-26 00:32:36 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-10-26 00:32:36 +0000 |
commit | 45e0af65ce55552b19aea7f2c876bb64f2c6a114 (patch) | |
tree | a53cd10f9c903b41dc765a5b38c90d3893721442 /hardinfo2/syncmanager.c | |
parent | a1db645416cc1ce6a0e775fc2a508695d3608868 (diff) |
Disable Network Updater when there's nothing to be updated.
Fix race condition when switching between entries very quickly caused strange behaviour.
Diffstat (limited to 'hardinfo2/syncmanager.c')
-rw-r--r-- | hardinfo2/syncmanager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hardinfo2/syncmanager.c b/hardinfo2/syncmanager.c index ad075a1d..f4949644 100644 --- a/hardinfo2/syncmanager.c +++ b/hardinfo2/syncmanager.c @@ -96,7 +96,11 @@ static void sync_dialog_netarea_start_actions(SyncDialog * sd, gint sync_manager_count_entries(void) { +#ifdef HAS_LIBSOUP return g_slist_length(entries); +#else + return 0; +#endif } void sync_manager_add_entry(SyncEntry * entry) |