Commit 82f9cf20 authored by Volker Krause's avatar Volker Krause

Fix regression in activity result handling

Resulted in hanging the app after a file dialog operation.
parent dfa307ff
......@@ -68,7 +68,9 @@ public:
inline void handleActivityResult(int receiverRequestCode, int resultCode, const QAndroidJniObject &intent) override
{
m_callback(receiverRequestCode, resultCode, intent);
delete this;
// ### we leak memory here, but deleting will hang the app
// but since this is gone with Qt 5.13 anyway we can ignore that for now
//delete this;
}
private:
std::function<void(int, int, const QAndroidJniObject&)> m_callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment