Skip to content

Commit 4e0906a

Browse files
Yaroslav Kokurinlukefromdc
Yaroslav Kokurin
authored andcommitted
Fix extract of encrypted archives
1 parent 83fe081 commit 4e0906a

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

src/fr-window.c

+4-20
Original file line numberDiff line numberDiff line change
@@ -5047,8 +5047,7 @@ fr_window_fake_load (FrArchive *archive,
50475047
add_after_opening = TRUE;
50485048
break;
50495049
}
5050-
if ((action->type == FR_BATCH_ACTION_EXTRACT)
5051-
|| (action->type == FR_BATCH_ACTION_EXTRACT_HERE)
5050+
if ((action->type == FR_BATCH_ACTION_EXTRACT_HERE)
50525051
|| (action->type == FR_BATCH_ACTION_EXTRACT_INTERACT))
50535052
{
50545053
extract_after_opening = TRUE;
@@ -6465,7 +6464,7 @@ fr_window_archive_extract_here (FrWindow *window,
64656464
TRUE,
64666465
FALSE);
64676466
fr_window_set_current_batch_action (window,
6468-
FR_BATCH_ACTION_EXTRACT,
6467+
FR_BATCH_ACTION_EXTRACT_INTERACT,
64696468
edata,
64706469
(GFreeFunc) extract_data_free);
64716470

@@ -6696,7 +6695,7 @@ fr_window_archive_extract (FrWindow *window,
66966695
ask_to_open_destination);
66976696

66986697
fr_window_set_current_batch_action (window,
6699-
FR_BATCH_ACTION_EXTRACT,
6698+
FR_BATCH_ACTION_EXTRACT_INTERACT,
67006699
edata,
67016700
(GFreeFunc) extract_data_free);
67026701

@@ -8571,21 +8570,6 @@ fr_window_exec_batch_action (FrWindow *window,
85718570
dlg_batch_add_files (window, (GList*) action->data);
85728571
break;
85738572

8574-
case FR_BATCH_ACTION_EXTRACT:
8575-
debug (DEBUG_INFO, "[BATCH] EXTRACT\n");
8576-
8577-
edata = action->data;
8578-
fr_window_archive_extract (window,
8579-
edata->file_list,
8580-
edata->extract_to_dir,
8581-
edata->sub_dir,
8582-
edata->base_dir,
8583-
edata->skip_older,
8584-
edata->overwrite,
8585-
edata->junk_paths,
8586-
TRUE);
8587-
break;
8588-
85898573
case FR_BATCH_ACTION_EXTRACT_HERE:
85908574
debug (DEBUG_INFO, "[BATCH] EXTRACT HERE\n");
85918575

@@ -8862,7 +8846,7 @@ fr_window_set_batch__extract (FrWindow *window,
88628846
(GFreeFunc) g_free);
88638847
if (dest_dir != NULL)
88648848
fr_window_append_batch_action (window,
8865-
FR_BATCH_ACTION_EXTRACT,
8849+
FR_BATCH_ACTION_EXTRACT_INTERACT,
88668850
extract_to_data_new (dest_dir),
88678851
(GFreeFunc) extract_data_free);
88688852
else

0 commit comments

Comments
 (0)