diff --git a/src/desktoputil.cpp b/src/desktoputil.cpp index efc1aa906..24e95e816 100644 --- a/src/desktoputil.cpp +++ b/src/desktoputil.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -33,11 +34,12 @@ #ifdef Q_OS_WIN QString defaultBrowser() { - QSettings settings("HKEY_CLASSES_ROOT\\HTTP\\shell\\open\\command", QSettings::NativeFormat); - QString command = settings.value(".").toString(); - QRegularExpression rx("\"(.+)\""); - if (rx.indexIn(command) != -1) - return rx.capturedTexts()[1]; + QSettings settings("HKEY_CLASSES_ROOT\\HTTP\\shell\\open\\command", QSettings::NativeFormat); + QString command = settings.value(".").toString(); + QRegularExpression rx("\"(.+)\""); + auto match = rx.match(command); + if (match.hasMatch()) + return match.capturedTexts()[1]; return command; } #endif diff --git a/src/libpsi/tools/spellchecker/spellhighlighter.cpp b/src/libpsi/tools/spellchecker/spellhighlighter.cpp index 89e5b4409..f4d1eed56 100644 --- a/src/libpsi/tools/spellchecker/spellhighlighter.cpp +++ b/src/libpsi/tools/spellchecker/spellhighlighter.cpp @@ -2,6 +2,7 @@ #include "common.h" #include "spellchecker.h" +#include SpellHighlighter::SpellHighlighter(QTextDocument *d) : QSyntaxHighlighter(d) { } diff --git a/version b/version index 908928563..f4560f2e2 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.5.1668 (2024-03-15, 65572028) +1.5.1669 (2024-03-15, baf10a80)