From 9da07f2f66f1049c90ae86e2f99bfcf58862de7e Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 12 Jan 2020 19:31:53 -0500 Subject: [PATCH] Don't mark cmd:// urls as invalid * Due to the complexity of cmd:// type url's, avoid trying to parse them for validity once the initial scheme is entered. * Fixes #4138 --- src/core/Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Tools.cpp b/src/core/Tools.cpp index 7cfc8a55f..5d42bc799 100644 --- a/src/core/Tools.cpp +++ b/src/core/Tools.cpp @@ -262,7 +262,7 @@ namespace Tools bool checkUrlValid(const QString& urlField) { - if (urlField.isEmpty()) { + if (urlField.isEmpty() || urlField.startsWith("cmd://", Qt::CaseInsensitive)) { return true; }