From f9704767ed8bc325f9224c69b2dd18f564ee5cc0 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 08:18:12 +0100 Subject: Improve MovieInfoPage Replace QPushButtons with a QToolbar and appropriate unicode symbols. While at at, return from Helper::fuzzyCheck when the search string is empty. Prevents false positives. --- helper.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helper.cpp') diff --git a/helper.cpp b/helper.cpp index 48ce15c..214e950 100644 --- a/helper.cpp +++ b/helper.cpp @@ -391,6 +391,9 @@ namespace Helper { QStringList fuzzyCheck(const QString &subtitle){ QStringList retval; + if(subtitle.isEmpty()){ + return retval; + } QSqlDatabase db = QSqlDatabase::database("treedb"); db.open(); QSqlQuery fuzzyQ(db); -- cgit v1.2.3-70-g09d2