Fix portable mode

Try to fix portable mode bug. Closes #11706, #11178, #7765.
This commit is contained in:
Tester798
2019-12-29 22:01:02 +02:00
committed by sledgehammer999
parent d2834bd7fd
commit bbaa3a94c5
4 changed files with 35 additions and 15 deletions

View File

@@ -179,7 +179,7 @@ QString Private::Converter::toPortablePath(const QString &path) const
QString Private::Converter::fromPortablePath(const QString &portablePath) const
{
if (QDir::isAbsolutePath(portablePath))
if (portablePath.isEmpty() || QDir::isAbsolutePath(portablePath))
return portablePath;
return QDir::cleanPath(m_baseDir.absoluteFilePath(portablePath));