mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-16 17:41:20 +01: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