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

Qt4: do not delete useful text

(cherry picked from commit c26ef9bc31a6ecd06dd4272e9139e6611e2e1294)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 93db9556
...@@ -1516,9 +1516,12 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e ) ...@@ -1516,9 +1516,12 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e )
return true; return true;
} }
else if( keyEv->key() == Qt::Key_Delete ) else if( keyEv->key() == Qt::Key_Delete )
{
if( aTable->currentColumn() != 0 )
{ {
aTable->currentItem()->setText( aTable->currentColumn(), NULL ); aTable->currentItem()->setText( aTable->currentColumn(), NULL );
aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() ); 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