Skip to content

Commit

Permalink
#5741: Model Export dialog: Set file extension on format selection ev…
Browse files Browse the repository at this point in the history
…en if the entry doesn't currently have any extension.
  • Loading branch information
codereader committed Sep 9, 2021
1 parent d44b291 commit 6378151
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions radiant/ui/modelexport/ExportAsModelDialog.cpp
Expand Up @@ -237,10 +237,7 @@ void ExportAsModelDialog::handleFormatSelectionChange()
std::string extLower = string::to_lower_copy(selectedFormat);

// Adjust the extension of the current file name
if (!os::getExtension(pathEntry->getValue()).empty())
{
pathEntry->setValue(os::replaceExtension(pathEntry->getValue(), extLower));
}
pathEntry->setValue(os::replaceExtension(pathEntry->getValue(), extLower));

// Check if the replace current selection option is available
std::string extensions = GlobalGameManager().currentGame()->getKeyValue("modeltypes");
Expand Down

0 comments on commit 6378151

Please sign in to comment.