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

@ -18480,3 +18480,6 @@
* Fixed a bug in the 'RDWaveFile' class that could prevent
reading of an 'rdxl' tag in an ID3 tag generated by a pre-v3.x
version of Rivendell.
2019-02-14 Patrick Linstruth <patrick@deltecent.com>
* Fixed a bug in rdlibrary(1) where double-clicking outside of
the list would cause a segfault.

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());
}
}