Merge pull request #663 from justinclift/issue660v2

Set NULL correctly on Alt-Delete
This commit is contained in:
Justin Clift
2016-07-21 14:49:04 +01:00
committed by GitHub

View File

@@ -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())