diff --git a/src/plugins/MouseGestures/mousegestures.cpp b/src/plugins/MouseGestures/mousegestures.cpp index 7872ce565..188bf4601 100644 --- a/src/plugins/MouseGestures/mousegestures.cpp +++ b/src/plugins/MouseGestures/mousegestures.cpp @@ -245,8 +245,9 @@ void MouseGestures::downUpGestured() BrowserWindow* window = view->browserWindow(); if (!window) return; - - window->tabWidget()->duplicateTab(); + + TabWidget* tabWidget = window->tabWidget(); + tabWidget->duplicateTab(tabWidget->currentIndex()); } void MouseGestures::upDownGestured()