2021-06-16 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdlibrary(1) that caused the incorrect
	color to be embedded when dragging a cart.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-16 19:25:11 -04:00
parent ae5daecaaa
commit 473770f852
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ void LibraryView::mousePressEvent(QMouseEvent *e)
RDCartDrag *cd=
new RDCartDrag(mod->cartNumber(index),
mod->data(mod->index(index.row(),4)).toString(),
mod->data(mod->index(index.row(),0),Qt::TextColorRole).
mod->data(mod->index(index.row(),1),Qt::TextColorRole).
value<QColor>());
drag->setMimeData(cd);
drag->setPixmap(mod->data(mod->index(index.row(),0),Qt::DecorationRole).