summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 15:30:59 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:37:27 -0800
commitb7e27e3141164c73390a445be9533b0a31d07115 (patch)
tree2542c2e8832c3875279742e7c948f2521fb605b1 /qt-ui/divelogimportdialog.cpp
parent6149004f4763d8b55fd59542813126341dd34fb5 (diff)
downloadsubsurface-b7e27e3141164c73390a445be9533b0a31d07115.tar.gz
Re-add the string removed upon drop operation
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r--qt-ui/divelogimportdialog.cpp4
1 files changed, 3 insertions, 1 deletions
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)