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
|
// draw message seperation line
|
||||||
if (app->settings->seperateMessages.getValue()) {
|
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);
|
app->themes->splits.messageSeperator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,6 +155,7 @@ void SplitContainer::addSplit(Split *split)
|
||||||
split->setParent(this);
|
split->setParent(this);
|
||||||
split->show();
|
split->show();
|
||||||
split->giveFocus(Qt::MouseFocusReason);
|
split->giveFocus(Qt::MouseFocusReason);
|
||||||
|
this->unsetCursor();
|
||||||
this->splits.push_back(split);
|
this->splits.push_back(split);
|
||||||
|
|
||||||
this->refreshTabTitle();
|
this->refreshTabTitle();
|
||||||
|
@ -201,6 +202,7 @@ SplitContainer::Position SplitContainer::releaseSplit(Split *split)
|
||||||
this->layout();
|
this->layout();
|
||||||
if (splits.size() == 0) {
|
if (splits.size() == 0) {
|
||||||
this->setSelected(nullptr);
|
this->setSelected(nullptr);
|
||||||
|
this->setCursor(Qt::PointingHandCursor);
|
||||||
} else {
|
} else {
|
||||||
this->splits.front()->giveFocus(Qt::MouseFocusReason);
|
this->splits.front()->giveFocus(Qt::MouseFocusReason);
|
||||||
}
|
}
|
||||||
|
@ -209,7 +211,6 @@ SplitContainer::Position SplitContainer::releaseSplit(Split *split)
|
||||||
|
|
||||||
// fourtf: really bad
|
// fourtf: really bad
|
||||||
split->getChannelView().tabHighlightRequested.disconnectAll();
|
split->getChannelView().tabHighlightRequested.disconnectAll();
|
||||||
split->focused.disconnectAll();
|
|
||||||
|
|
||||||
split->getChannelView().tabHighlightRequested.disconnectAll();
|
split->getChannelView().tabHighlightRequested.disconnectAll();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue