1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

TabBar: Don't show context menu when dragging tab

Otherwise it breaks tabbar state.
This commit is contained in:
David Rosca 2018-01-08 12:46:26 +01:00
parent 78383c007e
commit 84c4f0ff4d

View File

@ -293,6 +293,10 @@ void TabBar::showCloseButton(int index)
void TabBar::contextMenuEvent(QContextMenuEvent* event)
{
if (isDragInProgress()) {
return;
}
int index = tabAt(event->pos());
TabContextMenu menu(index, Qt::Horizontal, m_window, m_tabWidget);