Commit c26ef9bc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: do not delete useful text

parent f1191a4c
...@@ -1522,8 +1522,11 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e ) ...@@ -1522,8 +1522,11 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e )
} }
else if( keyEv->key() == Qt::Key_Delete ) else if( keyEv->key() == Qt::Key_Delete )
{ {
aTable->currentItem()->setText( aTable->currentColumn(), NULL ); if( aTable->currentColumn() != 0 )
aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() ); {
aTable->currentItem()->setText( aTable->currentColumn(), NULL );
aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() );
}
return true; return true;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment