diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-29 14:40:37 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-29 14:40:37 +0000 |
commit | 9ee42c7226a0571f78dd21319f226b8a48aa7fc0 (patch) | |
tree | 5a4709a5354d73c9397a9008712026664ce1f67d /hardinfo2 | |
parent | 422425593df585b879ca45b19849da48be463fe5 (diff) |
Change the report default filename to "hardinfo_report".
Fix crash.
Diffstat (limited to 'hardinfo2')
-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) { |