mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Editor: Don't enter directory name in filename in save menu
This commit is contained in:
parent
598c8cf1c6
commit
f1cf222e95
|
@ -4501,7 +4501,7 @@ void CEditor::FilelistPopulate(int StorageType)
|
|||
m_FilePreviewImage = 0;
|
||||
m_aFileDialogActivate = false;
|
||||
|
||||
if(m_FilesSelectedIndex >= 0)
|
||||
if(m_FilesSelectedIndex >= 0 && !m_FileList[m_FilesSelectedIndex].m_IsDir)
|
||||
str_copy(m_aFileDialogFileName, m_FileList[m_FilesSelectedIndex].m_aFilename, sizeof(m_aFileDialogFileName));
|
||||
else
|
||||
m_aFileDialogFileName[0] = 0;
|
||||
|
|
Loading…
Reference in a new issue