This should fix crashes when moving with pressed mouse buttons on
category nods
}
QModelIndex const & idx = availableLV->selectionModel()->currentIndex();
+
+ if (!idx.isValid())
+ return;
if (getAvailableModel()->itemFromIndex(idx)->hasChildren()) {
// This is a category header
}
QModelIndex const & idx = lv->selectionModel()->currentIndex();
+ if (!idx.isValid())
+ return;
+
if (!focus_on_selected
&& modules_av_model_.itemFromIndex(idx)->hasChildren()) {
// This is a category header