TabBar: Don't show context menu when dragging tab

Otherwise it breaks tabbar state.
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 78383c007e
commit 84c4f0ff4d
  1. 4
      src/lib/tabwidget/tabbar.cpp

@ -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);

Loading…
Cancel
Save