fix: entry->app maybe nullptr, need to judge before use
log: as title
This commit is contained in:
parent
a041aa7cf3
commit
d4cb60370e
@ -25,7 +25,8 @@
|
|||||||
|
|
||||||
bool shouldShowEntry(Entry *entry)
|
bool shouldShowEntry(Entry *entry)
|
||||||
{
|
{
|
||||||
if (entry->getApp()->isValidApp()) {
|
auto app = entry->getApp();
|
||||||
|
if (app && app->isValidApp()) {
|
||||||
QString path = entry->getApp()->getFileName();
|
QString path = entry->getApp()->getFileName();
|
||||||
DesktopInfo desktopInfo(path.toStdString());
|
DesktopInfo desktopInfo(path.toStdString());
|
||||||
return desktopInfo.shouldShow();
|
return desktopInfo.shouldShow();
|
||||||
|
Loading…
Reference in New Issue
Block a user