on xenial help sign in
Make sure search is re-trigered after changing form-factor
8aa3b3aMichal Hruby
plugins/Unity/scope.cpp+3−2
@@ -36,8 +36,8 @@
36
36
37#include <libintl.h>
37#include <libintl.h>
38
38
39−Scope::Scope(QObject *parent) :
39+Scope::Scope(QObject *parent) : QObject(parent)
40− QObject(parent)
40+ , m_formFactor("phone")
41{
41{
42 m_categories.reset(new Categories(this));
42 m_categories.reset(new Categories(this));
43}
43}
@@ -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
131 }
132 }
132 Q_EMIT formFactorChanged();
133 Q_EMIT formFactorChanged();
133 }
134 }