@@ -36,8 +36,8 @@
37#include <libintl.h>
37#include <libintl.h>
39−Scope::Scope(QObject *parent) :
39+Scope::Scope(QObject *parent) : QObject(parent)
40− QObject(parent)
40+ , m_formFactor("phone")
42 m_categories.reset(new Categories(this));
42 m_categories.reset(new Categories(this));
@@ -128,6 +128,7 @@ void Scope::setFormFactor(const QString& form_factor) {
128 m_formFactor = form_factor;
128 m_formFactor = form_factor;
129 if (m_unityScope) {
129 if (m_unityScope) {
130 m_unityScope->form_factor = m_formFactor.toStdString();
130 m_unityScope->form_factor = m_formFactor.toStdString();
131+ synchronizeStates(); // will trigger a re-search
132 Q_EMIT formFactorChanged();
133 Q_EMIT formFactorChanged();