mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Rename "fromNativePath" to "toUniformPath"
Unlike "toNativePath" which name clearly reflects the function result "fromNativePath" has no such clear meaning. Since this function converts path into uniform format "toUniformPath" is better name.
This commit is contained in:
parent
206bb018dd
commit
8e65317d61
17 changed files with 54 additions and 47 deletions
|
@ -308,13 +308,13 @@ void AppController::setPreferencesAction()
|
|||
QVariantHash scanDirs;
|
||||
ScanFoldersModel *model = ScanFoldersModel::instance();
|
||||
for (auto i = nativeDirs.cbegin(); i != nativeDirs.cend(); ++i) {
|
||||
QString folder = Utils::Fs::fromNativePath(i.key());
|
||||
QString folder = Utils::Fs::toUniformPath(i.key());
|
||||
int downloadType;
|
||||
QString downloadPath;
|
||||
ScanFoldersModel::PathStatus ec;
|
||||
if (i.value().type() == QVariant::String) {
|
||||
downloadType = ScanFoldersModel::CUSTOM_LOCATION;
|
||||
downloadPath = Utils::Fs::fromNativePath(i.value().toString());
|
||||
downloadPath = Utils::Fs::toUniformPath(i.value().toString());
|
||||
}
|
||||
else {
|
||||
downloadType = i.value().toInt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue