Skip to content

Commit

Permalink
Fix crash when toggling Shared due to improper row selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
DinCahill committed Nov 20, 2018
1 parent 1fadb15 commit f8cebda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ RemoteWidget::RemoteWidget(IconCache* iconCache, const QString& remote, bool isL
{
QModelIndex parent = index.parent();
QModelIndex next = parent.child(index.row() + 1, 0);
ui.tree->selectionModel()->select(next.isValid() ? next : parent, QItemSelectionModel::SelectCurrent);
ui.tree->selectionModel()->select(next.isValid() ? next : parent, QItemSelectionModel::SelectCurrent| QItemSelectionModel::Rows);
model->removeRow(index.row(), parent);
}
}
Expand Down

0 comments on commit f8cebda

Please sign in to comment.