1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-09 05:14:23 +00:00

Windows: Don't remove file associations if they aren't our own.

This commit is contained in:
sledgehammer999 2013-10-24 00:15:22 +03:00
parent 27d72bd9bf
commit 53e0526a1e

View File

@ -1248,7 +1248,7 @@ public:
settings.setValue("qBittorrent/shell/open/command/Default", command_str); settings.setValue("qBittorrent/shell/open/command/Default", command_str);
settings.setValue("qBittorrent/Content Type/Default", "application/x-bittorrent"); settings.setValue("qBittorrent/Content Type/Default", "application/x-bittorrent");
settings.setValue("qBittorrent/DefaultIcon/Default", icon_str); settings.setValue("qBittorrent/DefaultIcon/Default", icon_str);
} else { } else if (isTorrentFileAssocSet()) {
settings.remove(".torrent/Default"); settings.remove(".torrent/Default");
settings.remove(".torrent/Content Type"); settings.remove(".torrent/Content Type");
settings.remove("qBittorrent/shell/Default"); settings.remove("qBittorrent/shell/Default");
@ -1272,7 +1272,7 @@ public:
settings.setValue("Magnet/DefaultIcon/Default", icon_str); settings.setValue("Magnet/DefaultIcon/Default", icon_str);
settings.setValue("Magnet/shell/Default", "open"); settings.setValue("Magnet/shell/Default", "open");
settings.setValue("Magnet/shell/open/command/Default", command_str); settings.setValue("Magnet/shell/open/command/Default", command_str);
} else { } else if (isMagnetLinkAssocSet()) {
settings.remove("Magnet/Default"); settings.remove("Magnet/Default");
settings.remove("Magnet/Content Type"); settings.remove("Magnet/Content Type");
settings.remove("Magnet/URL Protocol"); settings.remove("Magnet/URL Protocol");