diff options
author | Miguel Costa <miguel.costa@qt.io> | 2019-01-16 15:49:22 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2019-01-21 11:38:33 +0000 |
commit | 365f96892505466dc1a66dcc6a9a62e4a68d85c6 (patch) | |
tree | 417e34d534b7be2f5f30a23595671dc721cdf300 | |
parent | 4d33c9b97a557713dce4c1eca6e42785a07f6bec (diff) |
Fix keyboard shortcut to Qt documentation
Fixed problems with the keyboard shortcut to the Qt documentation.
Pressing Alt+F1 will show the documentation for the selected code, but
in some cases would not find the intended page or would crash VS.
Task-number: QTVSADDINBUG-601
Change-Id: I18ac51f21065d76fb1b71d4a7693d105eb555498
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | src/qtvstools/QtHelpLinkChooser.xaml.cs | 2 | ||||
-rw-r--r-- | src/qtvstools/QtHelpMenu.cs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/qtvstools/QtHelpLinkChooser.xaml.cs b/src/qtvstools/QtHelpLinkChooser.xaml.cs index f8cfb68d..9b6c287c 100644 --- a/src/qtvstools/QtHelpLinkChooser.xaml.cs +++ b/src/qtvstools/QtHelpLinkChooser.xaml.cs @@ -45,7 +45,7 @@ namespace QtVsTools Loaded += OnLoaded; } - public string Link { get; private set; } + public string Link { get; set; } public string Keyword { private get; set; } public Dictionary<string, string> Links { private get; set; } diff --git a/src/qtvstools/QtHelpMenu.cs b/src/qtvstools/QtHelpMenu.cs index 9e94c9f0..d66eb793 100644 --- a/src/qtvstools/QtHelpMenu.cs +++ b/src/qtvstools/QtHelpMenu.cs @@ -263,7 +263,8 @@ namespace QtVsTools }; if (!dialog.ShowModal().GetValueOrDefault()) return; - uri = dialog.Link; + uri = dialog.Link + .Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); break; } |