mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
Fixed a bug in rdlibrary(1) where double-clicking outside of the list would cause a segfault.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user