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>
This commit is contained in:
Tomaz Canabrava 2015-01-06 22:41:57 -02:00 committed by Dirk Hohndel
parent 1ba08e2fec
commit 6746b73d85

View file

@ -275,6 +275,9 @@ void ColumnDropCSVView::mousePressEvent(QMouseEvent *press)
drag->setPixmap(pix); drag->setPixmap(pix);
drag->setMimeData(mimeData); drag->setMimeData(mimeData);
if (drag->exec() != Qt::IgnoreAction){ if (drag->exec() != Qt::IgnoreAction){
if (drag->target() != drag->source()) {
model()->setData(atClick, QString());
}
} }
} }