summaryrefslogtreecommitdiffstats
path: root/application/GuiUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/GuiUtil.cpp')
-rw-r--r--application/GuiUtil.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/GuiUtil.cpp b/application/GuiUtil.cpp
index 442922cd..cc06d711 100644
--- a/application/GuiUtil.cpp
+++ b/application/GuiUtil.cpp
@@ -11,11 +11,17 @@
#include "MultiMC.h"
#include <settings/SettingsObject.h>
+#include <BuildConfig.h>
void GuiUtil::uploadPaste(const QString &text, QWidget *parentWidget)
{
ProgressDialog dialog(parentWidget);
- std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text));
+ auto APIKeySetting = MMC->settings()->get("PasteEEAPIKey").toString();
+ if(APIKeySetting == "multimc")
+ {
+ APIKeySetting = BuildConfig.PASTE_EE_KEY;
+ }
+ std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text, APIKeySetting));
if (!paste->validateText())
{