Browse Source

Fix scan folder display on Windows and OS/2

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
7609db28f1
  1. 4
      src/scannedfoldersmodel.cpp

4
src/scannedfoldersmodel.cpp

@ -81,7 +81,11 @@ 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)
return pathData->path.replace("/", "\\");
#else
return pathData->path; return pathData->path;
#endif
if (index.column() == DownloadAtTorrentColumn && role == Qt::CheckStateRole) if (index.column() == DownloadAtTorrentColumn && role == Qt::CheckStateRole)
return pathData->downloadAtPath ? Qt::Checked : Qt::Unchecked; return pathData->downloadAtPath ? Qt::Checked : Qt::Unchecked;
return QVariant(); return QVariant();

Loading…
Cancel
Save