From 7609db28f12630664894b8f0c268aa581fa685f1 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 16 Aug 2010 08:58:25 +0000 Subject: [PATCH] Fix scan folder display on Windows and OS/2 --- src/scannedfoldersmodel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scannedfoldersmodel.cpp b/src/scannedfoldersmodel.cpp index 87f40b9a0..0c493d5cf 100644 --- a/src/scannedfoldersmodel.cpp +++ b/src/scannedfoldersmodel.cpp @@ -81,7 +81,11 @@ QVariant ScanFoldersModel::data(const QModelIndex &index, int role) const { const PathData* pathData = m_pathList.at(index.row()); if (index.column() == PathColumn && role == Qt::DisplayRole) - return pathData->path; +#if defined(Q_WS_WIN) || defined(Q_OS_OS2) + return pathData->path.replace("/", "\\"); +#else + return pathData->path; +#endif if (index.column() == DownloadAtTorrentColumn && role == Qt::CheckStateRole) return pathData->downloadAtPath ? Qt::Checked : Qt::Unchecked; return QVariant();