This commit is contained in:
fourtf 2018-05-25 16:20:39 +02:00
parent afb5a1e5bf
commit 8e8990b339
2 changed files with 3 additions and 2 deletions

View file

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

View file

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