role check fixed

This commit is contained in:
Uwe Rathmann 2024-02-26 11:37:59 +01:00
parent 8faa6a8cad
commit 60c7442fd0
1 changed files with 1 additions and 1 deletions

View File

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