mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-15 06:52:34 +02:00
Fix open folder dialog for MacOS
This commit is contained in:
parent
ef6dc7bc17
commit
958b96ae9a
@ -24,7 +24,11 @@ QString QMLUtilities::fixWindowsPath(QString url)
|
||||
void QMLUtilities::openFolderInExplorer(QString url)
|
||||
{
|
||||
QProcess explorer;
|
||||
#ifdef Q_OS_WIN
|
||||
explorer.setProgram("explorer.exe");
|
||||
#elif defined(Q_OS_OSX)
|
||||
explorer.setProgram("open");
|
||||
#endif
|
||||
QStringList args;
|
||||
args.append(QDir::toNativeSeparators(url));
|
||||
explorer.setArguments(args);
|
||||
|
Loading…
Reference in New Issue
Block a user