|
@@ -195,7 +195,8 @@ void FileDialog::_action_pressed() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- String f = dir_access->get_current_dir().plus_file(file->get_text());
|
|
|
|
|
|
+ String file_text = file->get_text();
|
|
|
|
+ String f = file_text.is_abs_path() ? file_text : dir_access->get_current_dir().plus_file(file_text);
|
|
|
|
|
|
if ((mode == MODE_OPEN_ANY || mode == MODE_OPEN_FILE) && dir_access->file_exists(f)) {
|
|
if ((mode == MODE_OPEN_ANY || mode == MODE_OPEN_FILE) && dir_access->file_exists(f)) {
|
|
emit_signal("file_selected", f);
|
|
emit_signal("file_selected", f);
|