fix: prevent images overriding content when changing pages

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-10-11 14:19:29 -03:00
parent d7992ab29d
commit d194b02e28
6 changed files with 39 additions and 5 deletions

View File

@ -19,6 +19,14 @@ class ProjectDescriptionPage final : public QTextBrowser {
void setMetaEntry(QString entry);
public slots:
/** Flushes the current processing happening in the page.
*
* Should be called when changing the page's content entirely, to
* prevent old tasks from changing the new content.
*/
void flush();
private:
shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
};