summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 22:41:57 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:38:42 -0800
commit6746b73d85e0160d64862ada43effec0515e92b4 (patch)
treef0ce0cc379d153713fde31f593b7a315687df3f3
parent1ba08e2fec619b105cb0d3d0718758bdcc9c7d87 (diff)
downloadsubsurface-6746b73d85e0160d64862ada43effec0515e92b4.tar.gz
Remove data if it was correctly moved to the upper model
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/divelogimportdialog.cpp3
1 files changed, 3 insertions, 0 deletions
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());
+ }
}
}