mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
'Allow escape sequences for links' setting fix in new sessions
The setting 'Allow escape sequences for links' is not applied to new tabs and instances of Konsole. This is confusing when a user sets the setting to enabled/allow. It only works after applying a profile, so after changing the setting and applying the changes it works for the current tab, but not for any new tabs or Konsole windows. BUG: 469511
This commit is contained in:
committed by
Kurt Hindenburg
parent
2cb10e120f
commit
ca51c19ad8
@@ -57,6 +57,7 @@
|
||||
#include "../decoders/PlainTextDecoder.h"
|
||||
#include "../widgets/KonsolePrintManager.h"
|
||||
#include "../widgets/TerminalDisplayAccessible.h"
|
||||
#include "Emulation.h" // to connect the URL escape sequence extractor
|
||||
#include "EscapeSequenceUrlExtractor.h"
|
||||
#include "PrintOptions.h"
|
||||
#include "Screen.h"
|
||||
@@ -151,9 +152,14 @@ void TerminalDisplay::setScreenWindow(ScreenWindow *window)
|
||||
auto profile = SessionManager::instance()->sessionProfile(_sessionController->session());
|
||||
_screenWindow->screen()->setReflowLines(profile->property<bool>(Profile::ReflowLines));
|
||||
_screenWindow->screen()->setIgnoreWcWidth(profile->property<bool>(Profile::IgnoreWcWidth));
|
||||
_screenWindow->screen()->setEnableUrlExtractor(profile->allowEscapedLinks());
|
||||
|
||||
if (_screenWindow->screen()->urlExtractor()) {
|
||||
_screenWindow->screen()->urlExtractor()->setAllowedLinkSchema(profile->escapedLinksSchema());
|
||||
connect(_sessionController->session()->emulation(),
|
||||
&Emulation::toggleUrlExtractionRequest,
|
||||
_screenWindow->screen()->urlExtractor(),
|
||||
&EscapeSequenceUrlExtractor::toggleUrlInput);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user