mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-08 21:04:26 +00:00
parent
84fabf14c8
commit
b12fdcf018
@ -142,7 +142,7 @@ Path Path::rootItem() const
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// should be `c:/` instead of `c:`
|
// should be `c:/` instead of `c:`
|
||||||
if (m_pathStr.at(slashIndex - 1) == u':')
|
if ((slashIndex == 2) && hasDriveLetter(m_pathStr))
|
||||||
return createUnchecked(m_pathStr.left(slashIndex + 1));
|
return createUnchecked(m_pathStr.left(slashIndex + 1));
|
||||||
#endif
|
#endif
|
||||||
return createUnchecked(m_pathStr.left(slashIndex));
|
return createUnchecked(m_pathStr.left(slashIndex));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user