From d7299eeff03da249abacc5821d605805bbf698da Mon Sep 17 00:00:00 2001 From: Donal Cahill Date: Thu, 22 Nov 2018 05:05:21 +0000 Subject: [PATCH] Put Shared toggle crashfix in the right place. Oops! --- src/remote_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote_widget.cpp b/src/remote_widget.cpp index 7a7e8fb3..9ce83469 100644 --- a/src/remote_widget.cpp +++ b/src/remote_widget.cpp @@ -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); } } @@ -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); });