QModelIndex GuiSelectionManager::getSelectedIndex(int const c) const
{
- QModelIndexList avail = availableLV->selectionModel()->selectedRows(c);
+ QModelIndexList avail = availableLV->selectionModel()->selectedIndexes();
QModelIndexList sel = selectedLV->selectionModel()->selectedRows(c);
bool const have_avl = !avail.isEmpty();
bool const have_sel = !sel.isEmpty();
if (have_sel)
return sel.front();
if (have_avl)
- return avail.front();
+ return avail.first();
}
else { // available has focus
if (have_avl)
- return avail.front();
+ return avail.first();
if (have_sel)
return sel.front();
}