From 6746b73d85e0160d64862ada43effec0515e92b4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 6 Jan 2015 22:41:57 -0200 Subject: Remove data if it was correctly moved to the upper model Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/divelogimportdialog.cpp') diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 7d165b892..fae2d3987 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -275,6 +275,9 @@ void ColumnDropCSVView::mousePressEvent(QMouseEvent *press) drag->setPixmap(pix); drag->setMimeData(mimeData); if (drag->exec() != Qt::IgnoreAction){ + if (drag->target() != drag->source()) { + model()->setData(atClick, QString()); + } } } -- cgit v1.2.3-70-g09d2