From 85f6c8471cfeeb1db5caba84f47f4eaed13001b6 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 24 Feb 2008 15:31:19 +0000 Subject: Disable "Network Updater" menu item when not compiled with libsoup support. --- hardinfo2/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 2a5b84b4..ca246704 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -252,7 +252,7 @@ void shell_view_set_enabled(gboolean setting) shell_action_set_enabled("RefreshAction", setting); shell_action_set_enabled("CopyAction", setting); shell_action_set_enabled("ReportAction", setting); - shell_action_set_enabled("SyncManagerAction", setting); + shell_action_set_enabled("SyncManagerAction", setting && sync_manager_count_entries() > 0); shell_action_set_enabled("SaveGraphAction", setting ? shell->view_type == SHELL_VIEW_PROGRESS : FALSE); -- cgit v1.2.3