You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a completely separate issue from the previous one, so I decided to file it separately. When I browse to the root directory "/" in Linux and then open the Places tab it calls the function std::string IGFD::FileManager::GetCurrentPath(). Which then replaces the active directory m_CurrentPath with a dot "." in line if (m_CurrentPath.empty()) m_CurrentPath = ".". This then breaks the filedialog because it cant open for example /mnt as it is actually trying to open ./mnt, which does not exist. Still figuring out if I can suggest how to solve this.
The text was updated successfully, but these errors were encountered:
Ok found a solution. In the void IGFD::FileManager::SetCurrentDir(const std::string& vPath) the trailing slash gets removed and then it gets replaced with the "." in GetCurrentPath function. It should not do this when this is the root slash:
if (m_CurrentPath[m_CurrentPath.size() - 1] == PATH_SEP) {
if (m_CurrentPath.size()>1){
m_CurrentPath = m_CurrentPath.substr(0, m_CurrentPath.size() - 1);
}
}
Hi, totally understand. I'm using this temporary fix until you find time to fix it properly (maybe useful for others stumbling upon this issue). fix-submodule.patch
I think this is a completely separate issue from the previous one, so I decided to file it separately. When I browse to the root directory "/" in Linux and then open the Places tab it calls the function
std::string IGFD::FileManager::GetCurrentPath()
. Which then replaces the active directorym_CurrentPath
with a dot "." in lineif (m_CurrentPath.empty()) m_CurrentPath = "."
. This then breaks the filedialog because it cant open for example/mnt
as it is actually trying to open./mnt
, which does not exist. Still figuring out if I can suggest how to solve this.The text was updated successfully, but these errors were encountered: