mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixes #406
This commit is contained in:
parent
eb25e863e3
commit
a0fb6630e7
|
@ -354,8 +354,14 @@ void NotebookTab::leaveEvent(QEvent *)
|
|||
this->update();
|
||||
}
|
||||
|
||||
void NotebookTab::dragEnterEvent(QDragEnterEvent *)
|
||||
void NotebookTab::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
if (!event->mimeData()->hasFormat("chatterino/split"))
|
||||
return;
|
||||
|
||||
if (!SplitContainer::isDraggingSplit)
|
||||
return;
|
||||
|
||||
if (this->notebook->getAllowUserTabManagement()) {
|
||||
this->notebook->select(this->page);
|
||||
}
|
||||
|
|
|
@ -321,9 +321,8 @@ void SplitContainer::dragEnterEvent(QDragEnterEvent *event)
|
|||
if (!event->mimeData()->hasFormat("chatterino/split"))
|
||||
return;
|
||||
|
||||
if (!SplitContainer::isDraggingSplit) {
|
||||
if (!SplitContainer::isDraggingSplit)
|
||||
return;
|
||||
}
|
||||
|
||||
this->isDragging = true;
|
||||
this->layout();
|
||||
|
|
Loading…
Reference in a new issue