mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 12:48:04 -06:00
Fix a lot of String encoding issues on non-unicode systems
Renaming a folder causes the old folder to be removed Fix some path separator issues on Win32 Fix file/folder opening in file browser on Win32
This commit is contained in:
@@ -722,9 +722,14 @@ void TransferListWidget::openSelectedTorrentsFolder() const {
|
||||
const QTorrentHandle &h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid()) {
|
||||
const QString &savePath = h.root_path();
|
||||
qDebug("Opening path at %s", qPrintable(savePath));
|
||||
if(!pathsList.contains(savePath)) {
|
||||
pathsList.append(savePath);
|
||||
#ifdef Q_WS_WIN
|
||||
QDesktopServices::openUrl(QUrl(QString("file:///")+savePath));
|
||||
#else
|
||||
QDesktopServices::openUrl(QUrl(QString("file://")+savePath));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user