aboutsummaryrefslogtreecommitdiff
path: root/src/Tabs.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-19 16:40:42 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-19 17:13:17 +0200
commit4ff87535e7aae35bfbd66fe88402dcb513af249c (patch)
tree6427d23446d8f2aec80abc15d912010c26ae38fa /src/Tabs.cpp
parentf4a02cabfd7452ed13b9c7b2e8b20ea5886768c8 (diff)
Matrix: add ctrl+r to navigate to replied to message and navigate to message from notifications tab
Diffstat (limited to 'src/Tabs.cpp')
-rw-r--r--src/Tabs.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Tabs.cpp b/src/Tabs.cpp
index 62a6fe4..9237d3b 100644
--- a/src/Tabs.cpp
+++ b/src/Tabs.cpp
@@ -212,11 +212,7 @@ namespace QuickMedia {
}
void Tabs::set_selected(int index) {
- if(tabs.empty()) {
- selected_tab = 0;
- } else {
- selected_tab = std::min(std::max(index, 0), (int)tabs.size() - 1);
- }
+ move_selected_tab(index);
}
int Tabs::get_selected() const {