Skip to content

Commit

Permalink
Put Shared toggle crashfix in the right place. Oops!
Browse files Browse the repository at this point in the history
  • Loading branch information
DinCahill committed Nov 22, 2018
1 parent 281add2 commit d7299ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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| QItemSelectionModel::Rows);
ui.tree->selectionModel()->select(next.isValid() ? next : parent, QItemSelectionModel::SelectCurrent);
model->removeRow(index.row(), parent);
}
}
Expand Down Expand Up @@ -288,7 +288,7 @@ RemoteWidget::RemoteWidget(IconCache* iconCache, const QString& remote, bool isL
top = top.parent();
}
ui.tree->selectionModel()->clear();
ui.tree->selectionModel()->select(top, QItemSelectionModel::Select);
ui.tree->selectionModel()->select(top, QItemSelectionModel::Select | QItemSelectionModel::Rows);
model->refresh(top);
});

Expand Down

0 comments on commit d7299ee

Please sign in to comment.