mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Fix portable mode
Try to fix portable mode bug. Closes #11706, #11178, #7765.
This commit is contained in:
committed by
sledgehammer999
parent
d2834bd7fd
commit
bbaa3a94c5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user