When overwriting a file with an auto added extension the file name is now set correctly.
This commit is contained in:
parent
c2ffdb05d4
commit
cac555dc78
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,6 @@ void FileDialog::_action_pressed() {
|
|||
|
||||
if (mode==MODE_SAVE_FILE) {
|
||||
|
||||
String ext = f.extension();
|
||||
bool valid=false;
|
||||
|
||||
if (filter->get_selected()==filter->get_item_count()-1) {
|
||||
|
@ -197,6 +196,7 @@ void FileDialog::_action_pressed() {
|
|||
if (!valid && filterSliceCount>0) {
|
||||
String str = (flt.get_slice(",",0).strip_edges());
|
||||
f+=str.substr(1, str.length()-1);
|
||||
file->set_text(f.get_file());
|
||||
valid=true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue