diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/shell.c | 2 | ||||
| -rw-r--r-- | hardinfo2/util.c | 5 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index d6290419..096b126a 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -609,7 +609,7 @@ shell_init(GSList *modules)      load_graph_configure_expose(shell->loadgraph);      gtk_widget_hide(shell->notebook); - +          shell_action_set_enabled("RefreshAction", FALSE);      shell_action_set_enabled("CopyAction", FALSE);      shell_action_set_active("SidePaneAction", TRUE); diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 67b17985..129b921f 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -373,7 +373,7 @@ static ShellModule *module_load(gchar *filename) {      module = g_new0(ShellModule, 1);      if (params.gui_running) { -        gchar *dot = g_strrstr(filename, G_MODULE_SUFFIX) - 1; +        gchar *dot = g_strrstr(filename, "." G_MODULE_SUFFIX);          *dot = '\0'; @@ -477,7 +477,8 @@ static GSList *modules_load(gchar **module_list)      if (dir) {          while ((filename = (gchar*)g_dir_read_name(dir))) { -            if (module_in_module_list(filename, module_list) && +            if (g_strrstr(filename, "." G_MODULE_SUFFIX) && +                module_in_module_list(filename, module_list) &&                  ((module = module_load(filename)))) {                      modules = g_slist_append(modules, module);              } | 
