1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

GFilePicker: Return paths as FileSystemPath rather than String

This commit is contained in:
faissaloo 2019-05-26 13:09:31 +01:00 committed by Andreas Kling
parent 9b86eb9fad
commit 6ac8aab941
3 changed files with 5 additions and 4 deletions

View file

@ -63,7 +63,7 @@ int main(int argc, char** argv)
auto open_action = GAction::create("Open document", { Mod_Ctrl, Key_O }, GraphicsBitmap::load_from_file("/res/icons/16x16/open.png"), [window, text_editor, &path](const GAction&) {
GFilePicker picker;
if (picker.exec() == GDialog::ExecOK) {
path = picker.selected_file();
path = picker.selected_file().string();
open_sesame(*window, *text_editor, path);
}
});