mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fixed text copying from chat windows
Tiny formatting fix (space after if)
This commit is contained in:
parent
d042c2f346
commit
4b05c10308
|
@ -65,7 +65,7 @@ void ChatAreaWidget::mouseReleaseEvent(QMouseEvent * event)
|
||||||
QTextCursor cursor(document());
|
QTextCursor cursor(document());
|
||||||
cursor.setPosition(pos);
|
cursor.setPosition(pos);
|
||||||
|
|
||||||
if(!cursor.atEnd())
|
if (!cursor.atEnd())
|
||||||
{
|
{
|
||||||
cursor.setPosition(pos+1);
|
cursor.setPosition(pos+1);
|
||||||
|
|
||||||
|
|
|
@ -255,6 +255,7 @@ void GenericChatForm::onEmoteButtonClicked()
|
||||||
|
|
||||||
void GenericChatForm::onChatWidgetClicked()
|
void GenericChatForm::onChatWidgetClicked()
|
||||||
{
|
{
|
||||||
|
if (!chatWidget->textCursor().hasSelection())
|
||||||
msgEdit->setFocus();
|
msgEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user