role check fixed
This commit is contained in:
parent
8faa6a8cad
commit
60c7442fd0
|
@ -67,7 +67,7 @@ class QskModelObjectBinder::PrivateData
|
|||
if ( !( model && currentRowIndex.isValid() ) )
|
||||
return;
|
||||
|
||||
if ( !roles.isEmpty() && roles.contains( Qt::EditRole ) )
|
||||
if ( !( roles.isEmpty() || roles.contains( Qt::EditRole ) ) )
|
||||
return;
|
||||
|
||||
const int row = currentRowIndex.row();
|
||||
|
|
Loading…
Reference in New Issue