on xenial help sign in
trigger a preview in activate unless we activate
d46dd33Albert Astals Cid
tests/mocks/Unity/fake_scope.cpp+3−1
@@ -189,10 +189,12 @@ void Scope::activate(QVariant const& result, QString const& categoryId)
189 m_openScope = scopes->getScopeFromAll("MockScope9");
189 m_openScope = scopes->getScopeFromAll("MockScope9");
190 scopes->addTempScope(m_openScope);
190 scopes->addTempScope(m_openScope);
191 Q_EMIT openScope(m_openScope);
191 Q_EMIT openScope(m_openScope);
192+ } else {
193+ Q_EMIT previewRequested(result);
192 }
194 }
193}
195}
194
196
195−PreviewStack* Scope::preview(QVariant const& result, QString const& categoryId)
197+PreviewStack* Scope::preview(QVariant const& result, QString const& /*categoryId*/)
196{
198{
197 Q_UNUSED(result);
199 Q_UNUSED(result);
198
200