~pete-woods/hud/tweak-search-parameters

« back to all changes in this revision

Viewing changes to service/Factory.cpp

  • Committer: Pete Woods
  • Date: 2014-02-18 13:35:12 UTC
  • Revision ID: pete.woods@canonical.com-20140218133512-bnrkd5sbd2jr6fpo
Make legacy queries return no results with an empty search string

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        return m_sessionBus;
89
89
}
90
90
 
91
 
Query::Ptr Factory::newQuery(const QString &query, const QString &sender) {
 
91
Query::Ptr Factory::newQuery(const QString &query, const QString &sender,
 
92
                Query::EmptyBehaviour emptyBehaviour) {
92
93
        return Query::Ptr(
93
 
                        new QueryImpl(m_queryCounter++, query, sender,
 
94
                        new QueryImpl(m_queryCounter++, query, sender, emptyBehaviour,
94
95
                                        *singletonHudService(), singletonApplicationList(),
95
96
                                        singletonVoice(), sessionBus()));
96
97
}