Fix nullptr -> bool conversion in return value

GCC does not like this, although both MSVC and clang accept it.
qteditor
Lukas Werling 2016-07-19 17:21:23 +02:00
parent 42e142b4d7
commit 513d51384f
1 changed files with 1 additions and 1 deletions

View File

@ -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);