Skip to content
This repository has been archived by the owner on Sep 1, 2019. It is now read-only.

Commit

Permalink
don't use / as root for remotes
Browse files Browse the repository at this point in the history
fixes #10
  • Loading branch information
mmozeiko committed Feb 1, 2017
1 parent e19928d commit 7d5f0d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/remote_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ RemoteWidget::RemoteWidget(IconCache* iconCache, const QString& remote, bool isL
{
ui.setupUi(this);

QString root = isLocal ? "/" : QString();

#ifdef Q_OS_WIN32
ui.mount->setVisible(false);
ui.buttonMount->setVisible(false);
Expand Down Expand Up @@ -341,7 +343,7 @@ RemoteWidget::RemoteWidget(IconCache* iconCache, const QString& remote, bool isL
}
else
{
QModelIndex index = model->addRoot("/", "/");
QModelIndex index = model->addRoot("/", root);
ui.tree->selectionModel()->select(index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
ui.tree->expand(index);
}
Expand Down

0 comments on commit 7d5f0d4

Please sign in to comment.