diff --git a/src/lib/downloads/downloaditem.cpp b/src/lib/downloads/downloaditem.cpp index 1cb36fa35..46641d96f 100644 --- a/src/lib/downloads/downloaditem.cpp +++ b/src/lib/downloads/downloaditem.cpp @@ -33,6 +33,7 @@ #include #include #include +#include //#define DOWNMANAGER_DEBUG @@ -385,7 +386,13 @@ void DownloadItem::openFile() void DownloadItem::openFolder() { +#ifdef Q_WS_WIN + QString winFileName = m_path + m_fileName; + winFileName.replace("/","\\"); + QProcess::startDetached("explorer.exe /e,/select,\""+winFileName+"\""); +#else QDesktopServices::openUrl(QUrl::fromLocalFile(m_path)); +#endif } void DownloadItem::readyRead()