diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index 84fa66271..bba06542f 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -634,7 +634,7 @@ QString TextHyperlinkEventFilter::tryToFormulateUrl(QTextCursor *cursor) maybeUrlStr = left + right; } - return stringMeetsOurUrlRequirements(maybeUrlStr) ? maybeUrlStr : QString::null; + return stringMeetsOurUrlRequirements(maybeUrlStr) ? maybeUrlStr : QString(); } QString TextHyperlinkEventFilter::fromCursorTilWhitespace(QTextCursor *cursor, const bool searchBackwards)