forked from qt-creator/qt-creator
DiffEditorPlugin: Expose plugin's future synchronizer
Change-Id: I208a0e6b9c9776486972177f845e76d33121a2a3 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <texteditor/textdocumentlayout.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <utils/futuresynchronizer.h>
|
||||
#include <utils/runextensions.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
|
||||
@@ -784,7 +785,7 @@ SideBySideDiffEditorWidget::~SideBySideDiffEditorWidget()
|
||||
{
|
||||
if (m_watcher) {
|
||||
m_watcher->cancel();
|
||||
DiffEditorPlugin::addFuture(m_watcher->future());
|
||||
DiffEditorPlugin::futureSynchronizer()->addFuture(m_watcher->future());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -816,7 +817,7 @@ void SideBySideDiffEditorWidget::clear(const QString &message)
|
||||
editor->clearAll(message);
|
||||
if (m_watcher) {
|
||||
m_watcher->cancel();
|
||||
DiffEditorPlugin::addFuture(m_watcher->future());
|
||||
DiffEditorPlugin::futureSynchronizer()->addFuture(m_watcher->future());
|
||||
m_watcher.reset();
|
||||
m_controller.setBusyShowing(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user