mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix opening the explorer with a selected file on windows.
Should Fix #1249
This commit is contained in:
parent
93ac78fd75
commit
e5edb8e2c7
@ -305,11 +305,11 @@ void Utility::showInFileManager(const QString &localPath)
|
||||
{
|
||||
if (isWindows()) {
|
||||
const QString explorer = "explorer.exe"; // FIXME: we trust it's in PATH
|
||||
QStringList param;
|
||||
QString param;
|
||||
if (!QFileInfo(localPath).isDir())
|
||||
param += QLatin1String("/select,");
|
||||
param += QDir::toNativeSeparators(localPath);
|
||||
QProcess::startDetached(explorer, param);
|
||||
QProcess::startDetached(explorer, QStringList(param));
|
||||
} else if (isMac()) {
|
||||
QStringList scriptArgs;
|
||||
scriptArgs << QLatin1String("-e")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user