diff options
-rw-r--r-- | hardinfo2/report.c | 2 | ||||
-rw-r--r-- | hardinfo2/shell.c | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/hardinfo2/report.c b/hardinfo2/report.c index 5e7e59a6..a2b82c47 100644 --- a/hardinfo2/report.c +++ b/hardinfo2/report.c @@ -366,7 +366,7 @@ static gchar *report_get_filename(void) GTK_RESPONSE_ACCEPT, NULL); gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), - "hardinfo report"); + "hardinfo_report"); file_chooser_add_filters(dialog, file_types); file_chooser_open_expander(dialog); diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 820a505b..fce29d8b 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1017,13 +1017,11 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) /* recreate the iter hash table */ if (!reload) { if (update_tbl) { - g_hash_table_foreach_remove(update_tbl, (GHRFunc) gtk_true, - NULL); - } else { - update_tbl = - g_hash_table_new_full(g_str_hash, g_str_equal, g_free, - g_free); - } + g_hash_table_destroy(update_tbl); + } + + update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal, + g_free, g_free); } if (update_sfusrc) { |