summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index dc614f5c..c3818b50 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -231,6 +231,16 @@ void MainView::mouseDoubleClickEvent(QMouseEvent *event)
}
+void MainView::contextMenuEvent(QContextMenuEvent *event)
+{
+ if (!childAt(event->pos()))
+ {
+ m_tabBar->contextMenuRequested(event->pos());
+ return;
+ }
+ KTabWidget::contextMenuEvent(event);
+}
+
// When index is -1 index chooses the current tab
void MainView::slotReloadTab(int index)
{