[file-roller] open destination: fixed when using junk_paths
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] open destination: fixed when using junk_paths
- Date: Fri, 30 Apr 2021 14:51:18 +0000 (UTC)
commit 79165c8a277aeb344d8e7e89c02b7d09ac36f894
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Apr 30 16:30:23 2021 +0200
open destination: fixed when using junk_paths
Fixes https://gitlab.gnome.org/GNOME/file-roller/-/issues/112
src/fr-window.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 4b07f047..9bd6dba2 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -6519,16 +6519,16 @@ archive_extraction_ready_cb (GObject *source_object,
_g_clear_object (&window->priv->last_extraction_destination);
window->priv->last_extraction_destination = _g_object_ref (fr_archive_get_last_extraction_destination
(window->archive));
- if (ask_to_open_destination) {
+ _g_object_list_unref (window->priv->last_extraction_files_first_level);
+ window->priv->last_extraction_files_first_level = NULL;
+
+ if (ask_to_open_destination && ! edata->junk_paths) {
/* collect the files to show in the file manager */
GHashTable *names_hash;
gboolean stop = FALSE;
int i;
- _g_object_list_unref (window->priv->last_extraction_files_first_level);
- window->priv->last_extraction_files_first_level = NULL;
-
names_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
for (i = 0; ! stop && (i < window->archive->files->len); i++) {
FileData *fdata = g_ptr_array_index (window->archive->files, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]