diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-02-24 15:31:19 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-02-24 15:31:19 +0000 |
commit | 85f6c8471cfeeb1db5caba84f47f4eaed13001b6 (patch) | |
tree | a04e4c888723ef4eef4e0602aff92c4526ae2be8 /hardinfo2/shell.c | |
parent | 1b225ecae8f9b55879d07185d4c9a39613dd10a8 (diff) |
Disable "Network Updater" menu item when not compiled with libsoup
support.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r-- | hardinfo2/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |