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:
		@@ -10,7 +10,14 @@ class PasteUpload : public Task
 | 
			
		||||
public:
 | 
			
		||||
	PasteUpload(QWidget *window, QString text);
 | 
			
		||||
	virtual ~PasteUpload(){};
 | 
			
		||||
 | 
			
		||||
	QString pasteLink()
 | 
			
		||||
	{
 | 
			
		||||
		return m_pasteLink;
 | 
			
		||||
	}
 | 
			
		||||
	QString pasteID()
 | 
			
		||||
	{
 | 
			
		||||
		return m_pasteID;
 | 
			
		||||
	}
 | 
			
		||||
protected:
 | 
			
		||||
	virtual void executeTask();
 | 
			
		||||
 | 
			
		||||
@@ -19,6 +26,8 @@ private:
 | 
			
		||||
	QString m_text;
 | 
			
		||||
	QString m_error;
 | 
			
		||||
	QWidget *m_window;
 | 
			
		||||
	QString m_pasteID;
 | 
			
		||||
	QString m_pasteLink;
 | 
			
		||||
	std::shared_ptr<QNetworkReply> m_reply;
 | 
			
		||||
public
 | 
			
		||||
slots:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user