Skip to content

Commit

Permalink
Merge pull request #663 from justinclift/issue660v2
Browse files Browse the repository at this point in the history
Set NULL correctly on Alt-Delete
  • Loading branch information
justinclift authored Jul 21, 2016
2 parents ee9dbac + 671a822 commit 906aa8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExtendedTableWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void ExtendedTableWidget::keyPressEvent(QKeyEvent* event)
{
// When pressing Alt+Delete set the value to NULL
foreach(const QModelIndex& index, selectedIndexes())
model()->setData(index, QString());
model()->setData(index, QVariant());
} else {
// When pressing Delete only set the value to empty string
foreach(const QModelIndex& index, selectedIndexes())
Expand Down

0 comments on commit 906aa8c

Please sign in to comment.