Commit 1c327f37 authored by Jan Paul Batrina's avatar Jan Paul Batrina Committed by Christoph Cullmann
Browse files

Add Workaround for KateTabBar sometimes disappearing on session load

Reverts commit 5748e432
parent 02247118
......@@ -40,9 +40,7 @@ KateTabBar::KateTabBar(QWidget *parent)
// enable document mode, docs tell this will trigger:
// On macOS this will look similar to the tabs in Safari or Sierra's Terminal.app.
// this seems reasonable for our document tabs
// => deactivated, tabbar doesn't show up on session load, see
// https://invent.kde.org/utilities/kate/-/merge_requests/189
// setDocumentMode(true);
setDocumentMode(true);
// we want drag and drop
setAcceptDrops(true);
......
......@@ -575,6 +575,11 @@ void KateViewSpace::restoreConfig(KateViewManager *viewMan, const KConfigBase *c
{
KConfigGroup group(config, groupname);
// workaround for the weird bug where the tabbar sometimes becomes invisible after opening a session via the session chooser dialog or the --start cmd option
// TODO: Debug the actual reason for the bug. See https://invent.kde.org/utilities/kate/-/merge_requests/189
m_tabBar->hide();
m_tabBar->show();
// restore Document lru list so that all tabs from the last session reappear
const QStringList lruList = group.readEntry("Documents", QStringList());
for (int i = 0; i < lruList.size(); ++i) {
......
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