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

« back to all changes in this revision

Viewing changes to service/WindowImpl.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:
45
45
        return m_tokens;
46
46
}
47
47
 
48
 
void WindowTokenImpl::search(const QString &query, QList<Result> &results) {
49
 
        m_items->search(query, results);
 
48
void WindowTokenImpl::search(const QString &query,
 
49
                Query::EmptyBehaviour emptyBehaviour, QList<Result> &results) {
 
50
        m_items->search(query, emptyBehaviour, results);
50
51
}
51
52
 
52
53
void WindowTokenImpl::execute(unsigned long long commandId) {