mirror of https://github.com/procxx/kepka.git
Added ability to open links without confirmation with Ctrl key.
- Fixed #6051.
This commit is contained in:
parent
cf45b0d317
commit
5f97b3bc22
|
@ -153,7 +153,8 @@ void HiddenUrlClickHandler::Open(QString url, QVariant context) {
|
||||||
open();
|
open();
|
||||||
} else {
|
} else {
|
||||||
const auto parsedUrl = QUrl::fromUserInput(url);
|
const auto parsedUrl = QUrl::fromUserInput(url);
|
||||||
if (UrlRequiresConfirmation(url)) {
|
if (UrlRequiresConfirmation(url)
|
||||||
|
&& QGuiApplication::keyboardModifiers() != Qt::ControlModifier) {
|
||||||
Core::App().hideMediaView();
|
Core::App().hideMediaView();
|
||||||
const auto displayUrl = parsedUrl.isValid()
|
const auto displayUrl = parsedUrl.isValid()
|
||||||
? parsedUrl.toDisplayString()
|
? parsedUrl.toDisplayString()
|
||||||
|
|
Loading…
Reference in New Issue