Skip to content

Wrong variable appended to path string #8

@SergioCatal

Description

@SergioCatal

https://github.com/Limeoats/L2DFileDialog/blob/b8bc0495739db5025aa075a545b78555c2cc2199/L2DFileDialog/src/L2DFileDialog.h#L334C1-L334C127

Shouldn't this line append the current folder instead of the current file?

Suggested edit:
auto path = file_dialog_current_path + (file_dialog_current_path.back() == '\\' ? "" : "\\") + file_dialog_current_folder;

After all, that variable is the one that is checked in the if clause on line 330.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions