summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 932f28c..56860f2 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -842,7 +842,7 @@ void Dialog::on_leftKey() {
int i = activeTab_;
do {
i = (i - 1 + TAB_COUNT) % TAB_COUNT;
- } while (!tabs_[i]->isEnabled());
+ } while (!tabs_[i]->isEnabled() && i != activeTab_);
onTabButtonChanged(i);
}
@@ -850,7 +850,7 @@ void Dialog::on_rightKey() {
int i = activeTab_;
do {
i = (i + 1) % TAB_COUNT;
- } while (!tabs_[i]->isEnabled());
+ } while (!tabs_[i]->isEnabled() && i != activeTab_);
onTabButtonChanged(i);
}