Created
September 2, 2019 22:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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