From 55124ed0bf6a1bcdf79c0149669e469dd1dd269f Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 5 Jun 2017 18:54:25 +0200 Subject: [PATCH] Added Info message when no files are found in Find File --- src/window.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/window.cc b/src/window.cc index e9d699c..82ae6d0 100644 --- a/src/window.cc +++ b/src/window.cc @@ -710,6 +710,11 @@ void Window::set_menu_actions() { paths->emplace(row_str, path); SelectionDialog::get()->add_row(row_str); } + + if(paths->empty()) { + Info::get().print("No files found in current project"); + return; + } SelectionDialog::get()->on_select=[this, paths](const std::string &selected, bool hide_window) { auto it=paths->find(selected);