summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
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);