aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 16:05:37 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 16:05:37 +0000
commitf15d3511abd9c6dfe489cf2e325d24b77463cefb (patch)
tree8688d2c0034c88d8dc318cef5d40ba4fde006e2e /hardinfo2/shell.c
parent5f19b74bf1b3cd7132a51aa1803ad3bc0ba4be62 (diff)
Added web links to the help menu (Report Bug and Open HardInfo webpage).
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 5e602cfa..cf5d6d74 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -382,7 +382,6 @@ shell_tree_modules_load(ShellTree * shelltree)
shelltree->modules = g_slist_append(shelltree->modules, module);
} else {
g_free(module->name);
- g_free(module->icon);
g_free(module);
}
@@ -391,6 +390,10 @@ shell_tree_modules_load(ShellTree * shelltree)
g_strfreev(cat);
g_key_file_free(keyfile);
+
+ if (g_slist_length(shelltree->modules) == 0) {
+ g_error("No module could be loaded. Check permissions on %s and try again.", path_lib);
+ }
}
static void view_menu_select_entry(gpointer data, gpointer data2)