Merge pull request #2989 from StraToN/2967fix_button_breaklines

Set default destination filename of imported font
This commit is contained in:
Rémi Verschelde 2015-12-04 22:32:44 +01:00
commit 98c54827ae
1 changed files with 4 additions and 0 deletions

View File

@ -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()) {