aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas@jolla.com>2017-01-20 11:26:54 +0100
committerSvetlana Abramenkova <sabramenkova@luxoft.com>2018-06-07 11:02:31 +0000
commit75e572a2a47bcd0dc01f36933ae6a21fb6507337 (patch)
tree55f34304540ec0e3edcdf7f03c3f96a33b0ac7cd
parentd13b8000a8d1a0499a462216e46341c6c7f440dc (diff)
Bench: Fix assertion failure on double click in directory preview
Change-Id: I43e26c1d844fd39f41311114488dbf7c42234d4d Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
-rw-r--r--src/bench/benchlivenodeengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/benchlivenodeengine.cpp b/src/bench/benchlivenodeengine.cpp
index 30dd5b5..b671062 100644
--- a/src/bench/benchlivenodeengine.cpp
+++ b/src/bench/benchlivenodeengine.cpp
@@ -110,7 +110,7 @@ void BenchLiveNodeEngine::initPlugins()
//This needs to be QueuedConnection because Qt5 doesn't like it to destruct it's object while it is in a signalHandler
connect(adapter, &DirectoryPreviewAdapter::loadDocument,
this, [this](const QString &document) {
- m_workspaceView->activateDocument(LiveDocument(document));
+ m_workspaceView->activateDocument(LiveDocument::resolve(workspace(), document));
},
Qt::QueuedConnection);
}