1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Merge pull request #510 from srazi/master

Select downloaded file when opening its folder [Windows only]
This commit is contained in:
David Rosca 2012-08-18 00:53:22 -07:00
commit 1ff2f975bb

View File

@ -33,6 +33,7 @@
#include <QFileInfo>
#include <QMessageBox>
#include <QDesktopServices>
#include <QProcess>
//#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()