This commit is contained in:
fourtf 2018-05-23 12:35:10 +02:00
parent eb25e863e3
commit a0fb6630e7
2 changed files with 8 additions and 3 deletions

View file

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

View file

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