Skip to content

Commit 5cfc6a3

Browse files
committed
Fix missing null check that somehow only gcc-arm64 sees
1 parent fbfcf95 commit 5cfc6a3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/desktop/betteritemdelegate.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ BetterItemDelegate::BetterItemDelegate(Options options, QAbstractItemView *paren
1414
: QStyledItemDelegate(parent)
1515
, m_options(options)
1616
{
17-
if (m_options.testFlag(Pinnable)) {
18-
Q_ASSERT(parent);
17+
if (m_options.testFlag(Pinnable) && parent)
1918
parent->setProperty("pinnableItems", true);
20-
}
2119
}
2220

2321
void BetterItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,

0 commit comments

Comments
 (0)