on xenial help sign in
trigger a preview in activate unless we activate
commitd46dd33db202dc12076e25c6732cb55093a3a4b8 authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 8 Jul 2015, 11:56 (11 years ago) parent900afba
1 file changed+3−1
tests/mocks/Unity/fake_scope.cpp+3−1
tests/mocks/Unity/fake_scope.cpp+3−1
@@ -189,10 +189,12 @@ void Scope::activate(QVariant const& result, QString const& categoryId)
189189 m_openScope = scopes->getScopeFromAll("MockScope9");
190190 scopes->addTempScope(m_openScope);
191191 Q_EMIT openScope(m_openScope);
192+ } else {
193+ Q_EMIT previewRequested(result);
192194 }
193195}
194196
195−PreviewStack* Scope::preview(QVariant const& result, QString const& categoryId)
197+PreviewStack* Scope::preview(QVariant const& result, QString const& /*categoryId*/)
196198{
197199 Q_UNUSED(result);
198200