Bug 507226

Summary: Extraction Dialog: "Extract" button greyed-out when filename field is empty
Product: [Applications] ark Reporter: Matthieu Carteron <rubisetcie>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED DUPLICATE    
Severity: normal CC: meven, rthomsen6
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Matthieu Carteron 2025-07-19 11:58:00 UTC
SUMMARY
In the archive extraction dialog, by default when it shows the filename field is empty and the "extract" button is disabled. The filename field is optional in the code, the "extract" button should be enabled even if this field is empty.

STEPS TO REPRODUCE
1. Open any archive with Ark.
2. Click on the "Extract" button to open the extraction dialog.

OBSERVED RESULT
The "extract" button to confirm the action is greyed-out (disabled), because the filename field is empty.

EXPECTED RESULT
The "extract" button should be enabled / clickable even if the filename field is empty, because it's optional (i.e. even if you write anything the extraction still works).

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
The code responsible for enabling/disabling the accept button is in KIO, right here:
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp?ref_type=heads#L1318
Comment 1 Matthieu Carteron 2025-07-19 13:56:49 UTC
I pushed a simple merge request that fixes this bug:
https://invent.kde.org/utilities/ark/-/merge_requests/300
Comment 2 Méven 2025-07-21 08:15:09 UTC

*** This bug has been marked as a duplicate of bug 507193 ***