mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix compilation error on Windows
This commit is contained in:
parent
c9c481fe69
commit
a6294e5739
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ QVariant ScanFoldersModel::data(const QModelIndex &index, int role) const {
|
||||||
const PathData* pathData = m_pathList.at(index.row());
|
const PathData* pathData = m_pathList.at(index.row());
|
||||||
if (index.column() == PathColumn && role == Qt::DisplayRole) {
|
if (index.column() == PathColumn && role == Qt::DisplayRole) {
|
||||||
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
|
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
|
||||||
return pathData->path.replace("/", "\\");
|
QString ret = pathData->path;
|
||||||
|
return ret.replace("/", "\\");
|
||||||
#else
|
#else
|
||||||
return pathData->path;
|
return pathData->path;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue