From a6294e57399a96b2eb4bd03bb10944a08d1a9793 Mon Sep 17 00:00:00 2001 From: sledgehammer_999 Date: Mon, 26 Sep 2011 22:24:12 +0300 Subject: [PATCH] Fix compilation error on Windows --- src/scannedfoldersmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scannedfoldersmodel.cpp b/src/scannedfoldersmodel.cpp index e2bc0b75e..d10e71af8 100644 --- a/src/scannedfoldersmodel.cpp +++ b/src/scannedfoldersmodel.cpp @@ -83,7 +83,8 @@ QVariant ScanFoldersModel::data(const QModelIndex &index, int role) const { const PathData* pathData = m_pathList.at(index.row()); if (index.column() == PathColumn && role == Qt::DisplayRole) { #if defined(Q_WS_WIN) || defined(Q_OS_OS2) - return pathData->path.replace("/", "\\"); + QString ret = pathData->path; + return ret.replace("/", "\\"); #else return pathData->path; #endif