aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/divelogimportdialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 6f61ac2db..73b2e5631 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -151,7 +151,12 @@ ColumnNameResult::ColumnNameResult(QObject *parent)
bool ColumnNameResult::setData(const QModelIndex &index, const QVariant &value, int role)
{
-
+ if (!index.isValid() || index.row() != 0)
+ return false;
+ if (role == Qt::EditRole) {
+ columnNames[index.column()] = value.toString();
+ dataChanged(index, index);
+ }
}
QVariant ColumnNameResult::data(const QModelIndex &index, int role) const