--- a/src/utils/appformime.cpp
+++ b/src/utils/appformime.cpp
@@ -123,6 +123,7 @@
     if (it == theAppMap.end()) {
         if (reason)
             *reason = string("No application found for ") + mime;
+        return false;
     }
     *apps = it->second;
     return true;