Skip to content

Commit

Permalink
Windows GUI: Fix opening subdirectories
Browse files Browse the repository at this point in the history
Enable loading files in subdirectories when the selected directory itself does not contain any files.
  • Loading branch information
cjee21 committed Jun 17, 2024
1 parent 53ac0a9 commit 8307771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GUI/VCL/GUI_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ void __fastcall TMainF::M_File_Open_FolderClick(TObject *Sender)
if (!FolderOpenDialog1->Execute(Handle))
return;

if (TDirectory::GetFiles(FolderOpenDialog1->FileName).Length != 0) {
if (FolderOpenDialog1->FileName.Length != 0) {
// First we clear the list
if (M_Options_CloseAllAuto->Checked)
M_File_Close_AllClick(Sender);
Expand Down

0 comments on commit 8307771

Please sign in to comment.