From 5afb0a1ab017865279e02ee06c1f6e36781da36f Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 26 Jan 2014 13:09:37 +0200 Subject: [PATCH] Fix windows file association. --- src/preferences/preferences.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/preferences/preferences.h b/src/preferences/preferences.h index 52e7775bd..1ffd58278 100755 --- a/src/preferences/preferences.h +++ b/src/preferences/preferences.h @@ -1257,9 +1257,9 @@ public: settings.setValue(".torrent/Default", "qBittorrent"); settings.setValue(".torrent/Content Type", "application/x-bittorrent"); settings.setValue("qBittorrent/shell/Default", "open"); - settings.setValue("qBittorrent/shell/open/command/Default", command_str); + settings.setValue("qBittorrent/shell/open/command/Default", fsutils::toNativePath(command_str)); settings.setValue("qBittorrent/Content Type/Default", "application/x-bittorrent"); - settings.setValue("qBittorrent/DefaultIcon/Default", icon_str); + settings.setValue("qBittorrent/DefaultIcon/Default", fsutils::toNativePath(icon_str)); } else if (isTorrentFileAssocSet()) { settings.remove(".torrent/Default"); settings.remove(".torrent/Content Type"); @@ -1281,9 +1281,9 @@ public: settings.setValue("Magnet/Default", "Magnet URI"); settings.setValue("Magnet/Content Type", "application/x-magnet"); settings.setValue("Magnet/URL Protocol", ""); - settings.setValue("Magnet/DefaultIcon/Default", icon_str); + settings.setValue("Magnet/DefaultIcon/Default", fsutils::toNativePath(icon_str)); settings.setValue("Magnet/shell/Default", "open"); - settings.setValue("Magnet/shell/open/command/Default", command_str); + settings.setValue("Magnet/shell/open/command/Default", fsutils::toNativePath(command_str)); } else if (isMagnetLinkAssocSet()) { settings.remove("Magnet/Default"); settings.remove("Magnet/Content Type");