Tweak the response to successful uploads (screenshots, log pastes)
The url will now be shown as link, put into the clipboard AND opened in a browser. At the same time. To avoid losing the URL.
This commit is contained in:
parent
15775bd30a
commit
d934e64831
4 changed files with 35 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue