From 45e0af65ce55552b19aea7f2c876bb64f2c6a114 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 26 Oct 2007 00:32:36 +0000 Subject: Disable Network Updater when there's nothing to be updated. Fix race condition when switching between entries very quickly caused strange behaviour. --- hardinfo2/syncmanager.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hardinfo2/syncmanager.c') 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) -- cgit v1.2.3