forgot to return false when no app found -> bad alloc/core dump

This commit is contained in:
Jean-Francois Dockes 2014-06-12 16:55:24 +02:00
parent cc052a31f8
commit 5f05f5d588

View File

@ -123,6 +123,7 @@ bool DesktopDb::appForMime(const string& mime, vector<AppDef> *apps,
if (it == theAppMap.end()) {
if (reason)
*reason = string("No application found for ") + mime;
return false;
}
*apps = it->second;
return true;