Browse Source

Fix compilation error on Windows

adaptive-webui-19844
sledgehammer_999 13 years ago committed by Christophe Dumez
parent
commit
a6294e5739
  1. 3
      src/scannedfoldersmodel.cpp

3
src/scannedfoldersmodel.cpp

@ -83,7 +83,8 @@ QVariant ScanFoldersModel::data(const QModelIndex &index, int role) const { @@ -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

Loading…
Cancel
Save