small fixes

This commit is contained in:
2018-09-20 18:24:57 +02:00
parent 5a3ba0eea3
commit 3a81d337d4
6 changed files with 29 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ void NodeDialogOpen::init_controls()
image_tex->tex.create(thumb);
selected_path = target->m_path;
selected_file = target->m_file_name;
selected_name = selected_file.substr(0, selected_file.length() - 5);
selected_name = selected_file.substr(0, selected_file.length() - strlen(".ppi"));
if (current)
current->m_selected = false;
current = target;