Skip to content

Commit

Permalink
Qt: Use file selector in Set Location if session is local (#502)
Browse files Browse the repository at this point in the history
It's the only place where Session::isServer() is used to decide if
a file selector should be used, or a text box. Session::isLocal()
is used everywhere else.

Co-authored-by: dubhater <cantabile.desu@gmail.com>
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 7, 2021
1 parent 6f76d8f commit f804043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qt/RelocateDialog.cc
Expand Up @@ -46,7 +46,7 @@ RelocateDialog::RelocateDialog(Session& session, TorrentModel const& model, torr
}
else if (path != tor->getPath())
{
if (session_.isServer())
if (session_.isLocal())
{
path = QDir::homePath();
}
Expand All @@ -59,7 +59,7 @@ RelocateDialog::RelocateDialog(Session& session, TorrentModel const& model, torr
}
}

if (session_.isServer())
if (session_.isLocal())
{
ui_.newLocationStack->setCurrentWidget(ui_.newLocationButton);
ui_.newLocationButton->setMode(PathButton::DirectoryMode);
Expand Down

0 comments on commit f804043

Please sign in to comment.