on xenial help sign in
Make sure search is re-trigered after changing form-factor
commit8aa3b3aa0d71e4298731a6dc51926e0a419dfc39 authorMichal Hruby <michal.mhr@gmail.com> dateWed 7 Aug 2013, 15:24 (13 years ago) parente859cf6
1 file changed+3−2
plugins/Unity/scope.cpp+3−2
plugins/Unity/scope.cpp+3−2
@@ -36,8 +36,8 @@
3636
3737#include <libintl.h>
3838
39−Scope::Scope(QObject *parent) :
40− QObject(parent)
39+Scope::Scope(QObject *parent) : QObject(parent)
40+ , m_formFactor("phone")
4141{
4242 m_categories.reset(new Categories(this));
4343}
@@ -128,6 +128,7 @@ void Scope::setFormFactor(const QString& form_factor) {
128128 m_formFactor = form_factor;
129129 if (m_unityScope) {
130130 m_unityScope->form_factor = m_formFactor.toStdString();
131+ synchronizeStates(); // will trigger a re-search
131132 }
132133 Q_EMIT formFactorChanged();
133134 }