forked from Mirrors/openclonk
Fix nullptr -> bool conversion in return value
GCC does not like this, although both MSVC and clang accept it.qteditor
parent
42e142b4d7
commit
513d51384f
|
@ -1059,7 +1059,7 @@ bool C4PropertyDelegateEnum::Paint(QPainter *painter, const QStyleOptionViewItem
|
|||
if (option_idx < 0) return false;
|
||||
const Option &selected_option = options[option_idx];
|
||||
EnsureOptionDelegateResolved(selected_option);
|
||||
if (!selected_option.adelegate) return nullptr;
|
||||
if (!selected_option.adelegate) return false;
|
||||
if (selected_option.adelegate->HasCustomPaint())
|
||||
{
|
||||
QStyleOptionViewItem parameter_option = QStyleOptionViewItem(option);
|
||||
|
|
Loading…
Reference in New Issue