mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
TabBar: Don't show context menu when dragging tab
Otherwise it breaks tabbar state.
This commit is contained in:
parent
78383c007e
commit
84c4f0ff4d
@ -293,6 +293,10 @@ void TabBar::showCloseButton(int index)
|
|||||||
|
|
||||||
void TabBar::contextMenuEvent(QContextMenuEvent* event)
|
void TabBar::contextMenuEvent(QContextMenuEvent* event)
|
||||||
{
|
{
|
||||||
|
if (isDragInProgress()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int index = tabAt(event->pos());
|
int index = tabAt(event->pos());
|
||||||
|
|
||||||
TabContextMenu menu(index, Qt::Horizontal, m_window, m_tabWidget);
|
TabContextMenu menu(index, Qt::Horizontal, m_window, m_tabWidget);
|
||||||
|
Loading…
Reference in New Issue
Block a user