Fixed a bug in rdlibrary(1) where double-clicking outside of the list would cause a segfault.

This commit is contained in:
Patrick Linstruth
2019-02-14 17:04:19 -08:00
parent 26c9ff87c0
commit 05820fd19d
2 changed files with 6 additions and 1 deletions

View File

@@ -1011,7 +1011,9 @@ void MainWidget::cartDoubleclickedData(Q3ListViewItem * item,const QPoint &,int)
// want (the current status), it will put it back to what we do want. There is probably
// a Qt way of doing this which should probably be addressed at a later date.
//
item->setOpen(!item->isOpen());
if(item!=NULL) {
item->setOpen(!item->isOpen());
}
}