aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/libkvihelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/help/libkvihelp.cpp')
-rw-r--r--src/modules/help/libkvihelp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp
index 7ffd979cc..a4d096ceb 100644
--- a/src/modules/help/libkvihelp.cpp
+++ b/src/modules/help/libkvihelp.cpp
@@ -153,7 +153,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c)
qDebug ("No file, use default at path %s",szDoc.toUtf8().data());
} else qDebug("Doc set from user to %s",szDoc.toUtf8().data());
- if (g_pDocIndex)
+ if (g_pDocIndex && !szDoc.isEmpty())
{
if (!g_pDocIndex->documentList().count())
{