aboutsummaryrefslogtreecommitdiffstats
path: root/src/bench/benchlivenodeengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/benchlivenodeengine.cpp')
-rw-r--r--src/bench/benchlivenodeengine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bench/benchlivenodeengine.cpp b/src/bench/benchlivenodeengine.cpp
index abe1910..30dd5b5 100644
--- a/src/bench/benchlivenodeengine.cpp
+++ b/src/bench/benchlivenodeengine.cpp
@@ -108,7 +108,11 @@ void BenchLiveNodeEngine::initPlugins()
DirectoryPreviewAdapter *adapter = new DirectoryPreviewAdapter(this);
if (m_workspaceView) {
//This needs to be QueuedConnection because Qt5 doesn't like it to destruct it's object while it is in a signalHandler
- connect(adapter, SIGNAL(loadDocument(QString)), m_workspaceView, SLOT(activateDocument(QString)), Qt::QueuedConnection);
+ connect(adapter, &DirectoryPreviewAdapter::loadDocument,
+ this, [this](const QString &document) {
+ m_workspaceView->activateDocument(LiveDocument(document));
+ },
+ Qt::QueuedConnection);
}
QmlPreviewAdapter *previewAdapter = new QmlPreviewAdapter(this);