mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed expanding messages
This commit is contained in:
parent
147e55e5a7
commit
a9d57f3ebd
1 changed files with 7 additions and 8 deletions
|
@ -836,24 +836,23 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
|
||||||
SelectionItem selectionItem(lastMessageIndex, lastCharacterIndex);
|
SelectionItem selectionItem(lastMessageIndex, lastCharacterIndex);
|
||||||
this->setSelection(selectionItem, selectionItem);
|
this->setSelection(selectionItem, selectionItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if message is collapsed
|
// check if message is collapsed
|
||||||
|
switch (event->button()) {
|
||||||
|
case Qt::LeftButton: {
|
||||||
|
this->lastPressPosition = event->screenPos();
|
||||||
|
this->isMouseDown = true;
|
||||||
|
|
||||||
if (layout->flags & MessageLayout::Collapsed) {
|
if (layout->flags & MessageLayout::Collapsed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event->button()) {
|
|
||||||
case Qt::LeftButton: {
|
|
||||||
if (app->settings->linksDoubleClickOnly.getValue()) {
|
if (app->settings->linksDoubleClickOnly.getValue()) {
|
||||||
this->pause(200);
|
this->pause(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->lastPressPosition = event->screenPos();
|
|
||||||
this->isMouseDown = true;
|
|
||||||
|
|
||||||
int index = layout->getSelectionIndex(relativePos);
|
int index = layout->getSelectionIndex(relativePos);
|
||||||
|
|
||||||
auto selectionItem = SelectionItem(messageIndex, index);
|
auto selectionItem = SelectionItem(messageIndex, index);
|
||||||
|
|
Loading…
Reference in a new issue