diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-01-05 07:32:52 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-01-05 07:32:52 +0100 |
commit | 4d0caf6254fdb18f4626a3c7937e64422b40d40c (patch) | |
tree | 76b037c8f6b6c73f8438b85e8e05a2f59da89c17 /application/GuiUtil.cpp | |
parent | d1e344f28f643c9fb0318feea0259be8ac72c8f7 (diff) | |
download | MultiMC-4d0caf6254fdb18f4626a3c7937e64422b40d40c.tar MultiMC-4d0caf6254fdb18f4626a3c7937e64422b40d40c.tar.gz MultiMC-4d0caf6254fdb18f4626a3c7937e64422b40d40c.tar.lz MultiMC-4d0caf6254fdb18f4626a3c7937e64422b40d40c.tar.xz MultiMC-4d0caf6254fdb18f4626a3c7937e64422b40d40c.zip |
GH-1389 wrap QDesktopServices and QProcess::startDetached
Essentially do not pass some environment variables to subprocesses:
* LD_PRELOAD
* LD_LIBRARY_PATH
* LD_DEBUG
* QT_PLUGIN_PATH
* QT_FONTPATH
Diffstat (limited to 'application/GuiUtil.cpp')
-rw-r--r-- | application/GuiUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/GuiUtil.cpp b/application/GuiUtil.cpp index cc06d711..f10095c1 100644 --- a/application/GuiUtil.cpp +++ b/application/GuiUtil.cpp @@ -1,7 +1,6 @@ #include "GuiUtil.h" #include <QClipboard> -#include <QDesktopServices> #include <QApplication> #include <QFileDialog> @@ -11,6 +10,7 @@ #include "MultiMC.h" #include <settings/SettingsObject.h> +#include <DesktopServices.h> #include <BuildConfig.h> void GuiUtil::uploadPaste(const QString &text, QWidget *parentWidget) @@ -42,7 +42,7 @@ void GuiUtil::uploadPaste(const QString &text, QWidget *parentWidget) { const QString link = paste->pasteLink(); setClipboardText(link); - QDesktopServices::openUrl(link); + DesktopServices::openUrl(link); CustomMessageBox::selectable( parentWidget, QObject::tr("Upload finished"), QObject::tr("The <a href=\"%1\">link to the uploaded log</a> has been opened in " |