From b7e27e3141164c73390a445be9533b0a31d07115 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 6 Jan 2015 15:30:59 -0200 Subject: Re-add the string removed upon drop operation Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 7e2a2a22d..89065cd50 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -29,7 +29,9 @@ ColumnNameProvider::ColumnNameProvider(QObject *parent) : QAbstractListModel(par bool ColumnNameProvider::insertRows(int row, int count, const QModelIndex &parent) { - + beginInsertRows(QModelIndex(), row, row); + columnNames.append(QString()); + endInsertRows(); } bool ColumnNameProvider::removeRows(int row, int count, const QModelIndex &parent) -- cgit v1.2.3-70-g09d2