mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 00:22:31 -06:00
Improve strip torrent root folder
Fix issue when you rename the "root item" in the "Add New Torrent" dialog and uncheck "Create subfolder", it will create the subfolder with the renamed name. Fix PropertiesWidget first folder is expanded after app restart. Strip root folder if torrent was added via magnet link. Fix crash when you get name of torrent without metadata.
This commit is contained in:
@@ -98,12 +98,9 @@ namespace BitTorrent
|
||||
PieceRange filePieces(const QString &file) const;
|
||||
PieceRange filePieces(int fileIndex) const;
|
||||
|
||||
libtorrent::file_storage files() const;
|
||||
libtorrent::file_storage origFiles() const;
|
||||
|
||||
void renameFile(uint index, const QString &newPath);
|
||||
void stripRootFolder();
|
||||
|
||||
void remapFiles(libtorrent::file_storage const &fileStorage);
|
||||
NativePtr nativeInfo() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user