2014-11-04 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'rdlogedit/drop_listview.cpp' that caused a
	segfault when dropping a cart on the log list.
This commit is contained in:
Fred Gleason 2014-11-04 20:21:06 -05:00
parent c5fa825021
commit bf7957818b
2 changed files with 4 additions and 1 deletions

View File

@ -14640,3 +14640,6 @@
2014-11-04 Fred Gleason <fredg@paravelsystems.com>
* Updated 'NEWS'.
* Incremented the package version to 2.10.1.
2014-11-04 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'rdlogedit/drop_listview.cpp' that caused a
segfault when dropping a cart on the log list.

View File

@ -49,7 +49,7 @@ void DropListView::dropEvent(QDropEvent *e)
if(RDCartDrag::decode(e,&ll)) {
RDListViewItem *item=(RDListViewItem *)itemAt(pos);
if(item!=NULL) {
line=item->text(13).toInt();
line=item->text(14).toInt();
}
emit cartDropped(line,&ll);
}