Files
MuditaOS/module-apps/application-notes/presenter/SearchEngineWindowPresenter.cpp
Adam Dobrowolski 56344b0579 [EGD-6680] Notes crash fix on search
Changed query for all matches to query with limit
2021-05-05 18:13:35 +02:00

18 lines
492 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "SearchEngineWindowPresenter.hpp"
#include <utility>
namespace app::notes
{
void SearchEngineWindowPresenter::searchFor(const std::string &searchText)
{
if (searchText.empty()) {
getView()->emptySearch();
return;
}
getView()->processValidSearch(searchText);
}
} // namespace app::notes