Skip to content

Commit

Permalink
Fix incorrect configuration path on Windows
Browse files Browse the repository at this point in the history
This would cause the Tor data directory to be named 'Torsion.initor',
rather than simply 'tor'.
  • Loading branch information
special committed Mar 23, 2014
1 parent 08c97ad commit 5060fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/AppSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

QString AppSettings::configLocation() const
{
QString s = QDir::toNativeSeparators(fileName());
QString s = QDir::fromNativeSeparators(fileName());
int n = s.lastIndexOf(QLatin1Char('/'));
return s.mid(0, (n < 0) ? n : (n+1));
}
Expand Down

0 comments on commit 5060fea

Please sign in to comment.