mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Windows: Don't remove file associations if they aren't our own.
This commit is contained in:
parent
01f253b24a
commit
722d851082
1 changed files with 2 additions and 2 deletions
|
@ -1256,7 +1256,7 @@ public:
|
|||
settings.setValue("qBittorrent/shell/open/command/Default", command_str);
|
||||
settings.setValue("qBittorrent/Content Type/Default", "application/x-bittorrent");
|
||||
settings.setValue("qBittorrent/DefaultIcon/Default", icon_str);
|
||||
} else {
|
||||
} else if (isTorrentFileAssocSet()) {
|
||||
settings.remove(".torrent/Default");
|
||||
settings.remove(".torrent/Content Type");
|
||||
settings.remove("qBittorrent/shell/Default");
|
||||
|
@ -1280,7 +1280,7 @@ public:
|
|||
settings.setValue("Magnet/DefaultIcon/Default", icon_str);
|
||||
settings.setValue("Magnet/shell/Default", "open");
|
||||
settings.setValue("Magnet/shell/open/command/Default", command_str);
|
||||
} else {
|
||||
} else if (isMagnetLinkAssocSet()) {
|
||||
settings.remove("Magnet/Default");
|
||||
settings.remove("Magnet/Content Type");
|
||||
settings.remove("Magnet/URL Protocol");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue