diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 5d61ea90b..b26ef2f56 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -4850,10 +4850,7 @@ void CEditor::RenderFileDialog() str_copy(m_aFilesSelectedName, m_vpFilteredFileList[m_FilesSelectedIndex]->m_aName); const bool WasChanged = m_FileDialogFileNameInput.WasChanged(); if(!m_vpFilteredFileList[m_FilesSelectedIndex]->m_IsDir) - { m_FileDialogFileNameInput.Set(m_vpFilteredFileList[m_FilesSelectedIndex]->m_aFilename); - m_FileDialogFileNameInput.SetRange("", m_FileDialogFileNameInput.GetLength() - str_length(".map"), m_FileDialogFileNameInput.GetLength()); - } else m_FileDialogFileNameInput.Clear(); if(!WasChanged) // ensure that changed flag is not set if it wasn't previously set, as this would reset the selection after DoEditBox is called