Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix possible problem in preview manager

parent 4d9f2f5e
......@@ -512,12 +512,14 @@ void PreviewManager::doPreviewRender(const QString &scene)
}
}
cons.set("an", 1);
cons.connect(*src);
connection = QObject::connect(this, &PreviewManager::abortPreview, [this, &cons]() {
cons.purge();
cons.stop();
if (!cons.is_stopped()) {
cons.stop();
}
m_abortPreview = true;
});
cons.connect(*src);
cons.run();
QObject::disconnect( connection );
if (m_abortPreview) {
......
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