mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #4090 from demolitions/master
Fixes #3942 - Throws an error when exporting for X11 with no filename
This commit is contained in:
commit
3eddd46fa8
@ -467,6 +467,14 @@ void ProjectExportDialog::_export_action(const String& p_file) {
|
||||
location=nl;
|
||||
}
|
||||
|
||||
/* Checked if the export location is outside the project directory,
|
||||
* now will check if a file name has been entered */
|
||||
if (p_file.ends_with("/")) {
|
||||
|
||||
error->set_text("Please enter a file name!");
|
||||
error->popup_centered_minsize();
|
||||
return;
|
||||
}
|
||||
|
||||
TreeItem *selected = platforms->get_selected();
|
||||
if (!selected)
|
||||
@ -1908,4 +1916,3 @@ ProjectExport::ProjectExport(EditorData* p_data) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user