Fix Wayland image upload crash if confirmation dialog is enabled (#5314)
This commit is contained in:
@@ -25,8 +25,16 @@ struct RawImageData {
|
||||
class ImageUploader final : public Singleton
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Tries to get the image(s) from the given QMimeData
|
||||
*
|
||||
* If no images were found, the second value in the pair will contain an error message
|
||||
*/
|
||||
std::pair<std::queue<RawImageData>, QString> getImages(
|
||||
const QMimeData *source) const;
|
||||
|
||||
void save() override;
|
||||
void upload(const QMimeData *source, ChannelPtr channel,
|
||||
void upload(std::queue<RawImageData> images, ChannelPtr channel,
|
||||
QPointer<ResizingTextEdit> outputTextEdit);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user