mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06: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:
@@ -1368,9 +1368,9 @@ void MainWindow::on_actionOpen_triggered()
|
||||
}
|
||||
|
||||
// Save last dir to remember it
|
||||
QStringList topDir = Utils::Fs::fromNativePath(pathsList.at(0)).split('/');
|
||||
QStringList topDir = Utils::Fs::toUniformPath(pathsList.at(0)).split('/');
|
||||
topDir.removeLast();
|
||||
pref->setMainLastDir(Utils::Fs::fromNativePath(topDir.join('/')));
|
||||
pref->setMainLastDir(Utils::Fs::toUniformPath(topDir.join('/')));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user