mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Fix portable mode
Try to fix portable mode bug. Closes #11706, #11178, #7765.
This commit is contained in:
@@ -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