Merge pull request #2989 from StraToN/2967fix_button_breaklines
Set default destination filename of imported font
This commit is contained in:
commit
98c54827ae
|
@ -520,6 +520,10 @@ class EditorFontImportDialog : public ConfirmationDialog {
|
|||
return;
|
||||
}
|
||||
|
||||
if (dest->get_line_edit()->get_text().get_file()==".fnt") {
|
||||
dest->get_line_edit()->set_text(dest->get_line_edit()->get_text().get_base_dir() + "/" + source->get_line_edit()->get_text().get_file().basename() + ".fnt" );
|
||||
}
|
||||
|
||||
Ref<ResourceImportMetadata> rimd = get_rimd();
|
||||
|
||||
if (rimd.is_null()) {
|
||||
|
|
Loading…
Reference in New Issue