Skip to content

Instantly share code, notes, and snippets.

@ivan
Created September 2, 2019 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/8a1655bcb7fa7a48b21e621bc35b9b02 to your computer and use it in GitHub Desktop.
Save ivan/8a1655bcb7fa7a48b21e621bc35b9b02 to your computer and use it in GitHub Desktop.
Fix konsole behavior on tab close: don't focus the most-recently-used tab; focus the tab to the right instead
diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp
index ebceaeed..7e31fbea 100644
--- a/src/ViewManager.cpp
+++ b/src/ViewManager.cpp
@@ -507,8 +507,7 @@ void ViewManager::focusAnotherTerminal(ViewSplitter *toplevelSplitter)
}
}
} else if (_terminalDisplayHistory.count() >= 1) {
- // Give focus to the last used terminal tab
- switchToTerminalDisplay(_terminalDisplayHistory[0]);
+ // Accept the default QTabBar behavior of focusing to the tab to the right
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment