OpenToonz - An open-source full-featured 2D animation creation software
C
Improve nameFiel assignment in FileBrowserPopup
Abel You6576263e42d4
diff --git a/toonz/sources/toonz/filebrowserpopup.cpp b/toonz/sources/toonz/filebrowserpopup.cppindex 46fafd050..dc9ba9ce0 100644--- a/toonz/sources/toonz/filebrowserpopup.cpp+++ b/toonz/sources/toonz/filebrowserpopup.cpp@@ -344,7 +344,8 @@ void FileBrowserPopup::onFilePathsSelected(if (!m_isDirectoryOnly)text = QString::fromStdWString(fp.getLevelNameW());else- text = QString::fromStdWString(m_browser->getFolder().getWideString());+ text = fp.getDots().empty() ? fp.getQString()+ : fp.getParentDir().getQString();m_nameField->setText(text);} else