mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixes #400
This commit is contained in:
parent
afb5a1e5bf
commit
8e8990b339
|
@ -196,7 +196,7 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection
|
|||
|
||||
// draw message seperation line
|
||||
if (app->settings->seperateMessages.getValue()) {
|
||||
painter.fillRect(0, y + this->m_container.getHeight() - 1, this->m_container.getWidth(), 1,
|
||||
painter.fillRect(0, y, this->m_container.getWidth(), 1,
|
||||
app->themes->splits.messageSeperator);
|
||||
}
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ void SplitContainer::addSplit(Split *split)
|
|||
split->setParent(this);
|
||||
split->show();
|
||||
split->giveFocus(Qt::MouseFocusReason);
|
||||
this->unsetCursor();
|
||||
this->splits.push_back(split);
|
||||
|
||||
this->refreshTabTitle();
|
||||
|
@ -201,6 +202,7 @@ SplitContainer::Position SplitContainer::releaseSplit(Split *split)
|
|||
this->layout();
|
||||
if (splits.size() == 0) {
|
||||
this->setSelected(nullptr);
|
||||
this->setCursor(Qt::PointingHandCursor);
|
||||
} else {
|
||||
this->splits.front()->giveFocus(Qt::MouseFocusReason);
|
||||
}
|
||||
|
@ -209,7 +211,6 @@ SplitContainer::Position SplitContainer::releaseSplit(Split *split)
|
|||
|
||||
// fourtf: really bad
|
||||
split->getChannelView().tabHighlightRequested.disconnectAll();
|
||||
split->focused.disconnectAll();
|
||||
|
||||
split->getChannelView().tabHighlightRequested.disconnectAll();
|
||||
|
||||
|
|
Loading…
Reference in a new issue