Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d2dd767e authored by Kurt Hindenburg's avatar Kurt Hindenburg

Fix ASAN issue for determining if running in a KPart

Just duplicate code of isKonsolePart() for now

See Differential Revision: https://phabricator.kde.org/D16706

(cherry picked from commit bf71cb54)
parent 72368b71
......@@ -170,9 +170,10 @@ void TabbedViewContainer::konsoleConfigChanged()
// This is a hack, and this needs to be rewritten.
// The container should not be part of the KParts, perhaps just the
// TerminalDisplay should.
auto controller = _navigation[widget(_contextMenuTabIndex)];
auto sessionController = qobject_cast<SessionController*>(controller);
if (sessionController->isKonsolePart()) {
// ASAN issue if using sessionController->isKonsolePart(), just
// duplicate code for now
if (qApp->applicationName() != QLatin1String("konsole")) {
tabBar()->setVisible(false);
} else {
// if we start with --show-tabbar or --hide-tabbar we ignore the preferences.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment