Skip to content

Commit acc8db4

Browse files
Update src/gui/tray/unifiedsearchresultslistmodel.cpp
Co-authored-by: Matthieu Gallien <[email protected]> Signed-off-by: Barış <[email protected]>
1 parent 1266edf commit acc8db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/tray/unifiedsearchresultslistmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void UnifiedSearchResultsListModel::resultClicked(const QString &providerId,
335335
QString fileName = urlQuery.queryItemValue(QStringLiteral("scrollto"), QUrl::ComponentFormattingOption::FullyDecoded);
336336

337337
if (providerId.contains(QStringLiteral("file"), Qt::CaseInsensitive)){
338-
if (_accountState == nullptr || _accountState->account() == nullptr) {
338+
if (!_accountState || !_accountState->account()) {
339339
return;
340340
}
341341

0 commit comments

Comments
 (0)