forgot to return false when no app found -> bad alloc/core dump
This commit is contained in:
parent
cc052a31f8
commit
5f05f5d588
@ -123,6 +123,7 @@ bool DesktopDb::appForMime(const string& mime, vector<AppDef> *apps,
|
|||||||
if (it == theAppMap.end()) {
|
if (it == theAppMap.end()) {
|
||||||
if (reason)
|
if (reason)
|
||||||
*reason = string("No application found for ") + mime;
|
*reason = string("No application found for ") + mime;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
*apps = it->second;
|
*apps = it->second;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user