Fixes #406
This commit is contained in:
@@ -354,8 +354,14 @@ void NotebookTab::leaveEvent(QEvent *)
|
|||||||
this->update();
|
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()) {
|
if (this->notebook->getAllowUserTabManagement()) {
|
||||||
this->notebook->select(this->page);
|
this->notebook->select(this->page);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -321,9 +321,8 @@ void SplitContainer::dragEnterEvent(QDragEnterEvent *event)
|
|||||||
if (!event->mimeData()->hasFormat("chatterino/split"))
|
if (!event->mimeData()->hasFormat("chatterino/split"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!SplitContainer::isDraggingSplit) {
|
if (!SplitContainer::isDraggingSplit)
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
this->isDragging = true;
|
this->isDragging = true;
|
||||||
this->layout();
|
this->layout();
|
||||||
|
|||||||
Reference in New Issue
Block a user