summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-05-26 04:00:54 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-05-26 04:00:54 -0400
commitc82c7af678c088a6b94fc8a4a0f31fc9498e8220 (patch)
tree5732efc9937dba3dd77d6566b62284db284315bf /src/downloadmanager.cpp
parent76708b9694070bcaa5775a097ae73ffc163ca31b (diff)
changed rest of ShellExecuteW() calls to use shell::Execute(), shell::OpenLink() or shell::OpenFile()
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index 1412df51..ecc3cfd6 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1030,10 +1030,10 @@ void DownloadManager::openFile(int index)
reportError(tr("OpenFile: invalid download index %1").arg(index));
return;
}
+
QDir path = QDir(m_OutputDirectory);
if (path.exists(getFileName(index))) {
-
- ::ShellExecuteW(nullptr, L"open", ToWString(QDir::toNativeSeparators(getFilePath(index))).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+ shell::OpenFile(getFilePath(index));
return;
}