Qt: Fix a Qt 5.15 deprecation warning for QProcess.

Move our explorer.exe selection to a separate argument.

Change-Id: Id1f3d565a567fef30190b6abd1ba8f7bc3805911
Reviewed-on: https://code.wireshark.org/review/37362
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Gerald Combs 2020-06-02 10:33:50 -07:00 committed by Anders Broman
parent 86eba21b82
commit 2318cbd8bc
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ void desktop_show_in_folder(const QString file_path)
#if defined(Q_OS_WIN)
QString path = QDir::toNativeSeparators(file_path);
QString command = "explorer.exe /select," + path;
success = QProcess::startDetached(command);
QStringList explorer_args = QStringList() << "/select," + path;
success = QProcess::startDetached("explorer.exe", explorer_args);
#elif defined(Q_OS_MAC)
QStringList script_args;
QString escaped_path = file_path;