mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Merge pull request #1205 from csoler/v0.6-TorOnly
make sure tor executable from config path can be reached
This commit is contained in:
commit
b1e768731c
@ -446,7 +446,8 @@ QString TorManagerPrivate::torExecutablePath() const
|
||||
{
|
||||
SettingsObject settings(QStringLiteral("tor"));
|
||||
QString path = settings.read("executablePath").toString();
|
||||
if (!path.isEmpty())
|
||||
|
||||
if (!path.isEmpty() && QFile::exists(path))
|
||||
return path;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
@ -456,6 +457,7 @@ QString TorManagerPrivate::torExecutablePath() const
|
||||
#endif
|
||||
|
||||
path = qApp->applicationDirPath();
|
||||
|
||||
if (QFile::exists(path + filename))
|
||||
return path + filename;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user