vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Mar 12 19:20:17 2012 +0100| [c26ef9bc31a6ecd06dd4272e9139e6611e2e1294] | committer: Jean-Baptiste Kempf
Qt4: do not delete useful text > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c26ef9bc31a6ecd06dd4272e9139e6611e2e1294 --- modules/gui/qt4/components/preferences_widgets.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 32c8f0d..b80b9fd 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -1522,8 +1522,11 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e ) } else if( keyEv->key() == Qt::Key_Delete ) { - aTable->currentItem()->setText( aTable->currentColumn(), NULL ); - aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() ); + if( aTable->currentColumn() != 0 ) + { + aTable->currentItem()->setText( aTable->currentColumn(), NULL ); + aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() ); + } return true; } else _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
