From 43f5328140dec166c14f67625b210c12ff4e7db8 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 15 May 2012 09:52:44 +0200 Subject: Added info when no downloads are found on search --- src/newtabpage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 8973cf4c..5101b0e1 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -651,6 +651,12 @@ void NewTabPage::downloadsPage(const QString & filter) i++; } + + if (i==0) + { + m_root.addClass(QL1S("empty")); + m_root.setPlainText(i18n("No matches for string %1 in downloads", filter)); + } } -- cgit v1.2.1