aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2021-12-15 22:32:14 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2021-12-17 12:57:59 +0000
commitbdac9dc91e241afa4f364e2c9d233d51d82f3ad4 (patch)
treea99cc5080a42e02e1ba9cf4b724f2901942e845c /QtVsTools.Core
parenta9b0281e58c397637eeb897f9f11ad857ce1dfe6 (diff)
Update and fix contextual help
* Fix null reference exception QtVsTools.Core.QtVersionManager.GetVersionInfo(...) can return null if one presses ALT+F1 and no Qt version is registered. * Update URL builder code to take the Qt major version into account. Change-Id: I9239af3e87e2ccabee1f629c9c69a0cbd63e35de Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'QtVsTools.Core')
-rw-r--r--QtVsTools.Core/VersionInformation.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/QtVsTools.Core/VersionInformation.cs b/QtVsTools.Core/VersionInformation.cs
index fd11f8c5..2ab6cabf 100644
--- a/QtVsTools.Core/VersionInformation.cs
+++ b/QtVsTools.Core/VersionInformation.cs
@@ -29,6 +29,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
@@ -36,6 +37,7 @@ using System.Text.RegularExpressions;
namespace QtVsTools.Core
{
+ [DebuggerDisplay("Name = {name}, Version = {qtMajor}.{qtMinor}.{qtPatch}")]
public class VersionInformation
{
//fields