summaryrefslogtreecommitdiffstats
path: root/logic/net/PasteUpload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/net/PasteUpload.cpp')
-rw-r--r--logic/net/PasteUpload.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/logic/net/PasteUpload.cpp b/logic/net/PasteUpload.cpp
index ec0b2c60..ccd7dc48 100644
--- a/logic/net/PasteUpload.cpp
+++ b/logic/net/PasteUpload.cpp
@@ -77,9 +77,8 @@ bool PasteUpload::parseResult(QJsonDocument doc)
QLOG_ERROR() << "paste.ee reported error:" << QString(object.value("error").toString());
return false;
}
- // FIXME: not the place for GUI things.
- QString pasteUrl = object.value("paste").toObject().value("link").toString();
- QDesktopServices::openUrl(pasteUrl);
+ m_pasteLink = object.value("paste").toObject().value("link").toString();
+ m_pasteID = object.value("paste").toObject().value("id").toString();
return true;
}