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

Qt4: do not delete useful text

parent f1191a4c
......@@ -1521,9 +1521,12 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e )
return true;
}
else if( keyEv->key() == Qt::Key_Delete )
{
if( aTable->currentColumn() != 0 )
{
aTable->currentItem()->setText( aTable->currentColumn(), NULL );
aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() );
}
return true;
}
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