summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-11-24 08:18:12 +0100
committerArno <arno@disconnect.de>2018-11-24 08:18:12 +0100
commitf9704767ed8bc325f9224c69b2dd18f564ee5cc0 (patch)
treec54f213d9962a596ed09dca824a86b03e9867bbc /helper.cpp
parent838f8d1760b8c7f72680ab0c57fd813c29940b86 (diff)
downloadSheMov-f9704767ed8bc325f9224c69b2dd18f564ee5cc0.tar.gz
SheMov-f9704767ed8bc325f9224c69b2dd18f564ee5cc0.tar.bz2
SheMov-f9704767ed8bc325f9224c69b2dd18f564ee5cc0.zip
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.
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp3
1 files changed, 3 insertions, 0 deletions
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);