From 85cafe530e88800ef37a0c9901e23a099edaf704 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 16 Aug 2010 09:20:49 +0000 Subject: [PATCH] Fix to last commit --- src/scannedfoldersmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scannedfoldersmodel.cpp b/src/scannedfoldersmodel.cpp index 0c493d5cf..cb3c6c122 100644 --- a/src/scannedfoldersmodel.cpp +++ b/src/scannedfoldersmodel.cpp @@ -80,12 +80,15 @@ QVariant ScanFoldersModel::data(const QModelIndex &index, int role) const { return QVariant(); 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) - return pathData->path.replace("/", "\\"); + QString ret = pathData->path; + ret = ret.replace("/", "\\"); + return ret; #else return pathData->path; #endif + } if (index.column() == DownloadAtTorrentColumn && role == Qt::CheckStateRole) return pathData->downloadAtPath ? Qt::Checked : Qt::Unchecked; return QVariant();