summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index a8c86e56..bdf80e52 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -229,10 +229,10 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
229 isRequestOngoing_DocumentWidget(doc) ? stopCStr_ : reloadCStr_); 229 isRequestOngoing_DocumentWidget(doc) ? stopCStr_ : reloadCStr_);
230 } 230 }
231 } 231 }
232 else if (equal_Command(cmd, "mouse.clicked")) { 232 else if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd)) {
233 iWidget *widget = pointer_Command(cmd); 233 iWidget *widget = pointer_Command(cmd);
234 iWidget *menu = findWidget_App("doctabs.menu"); 234 iWidget *menu = findWidget_App("doctabs.menu");
235 if (isTabButton_Widget(widget)) { 235 if (isTabButton_Widget(widget) && !isVisible_Widget(menu)) {
236 iWidget *tabs = findWidget_App("doctabs"); 236 iWidget *tabs = findWidget_App("doctabs");
237 showTabPage_Widget(tabs, 237 showTabPage_Widget(tabs,
238 tabPage_Widget(tabs, childIndex_Widget(widget->parent, widget))); 238 tabPage_Widget(tabs, childIndex_Widget(widget->parent, widget)));