1
0
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:
novist 2014-12-27 20:59:43 +02:00
parent d042c2f346
commit 4b05c10308
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -255,6 +255,7 @@ void GenericChatForm::onEmoteButtonClicked()
void GenericChatForm::onChatWidgetClicked() void GenericChatForm::onChatWidgetClicked()
{ {
if (!chatWidget->textCursor().hasSelection())
msgEdit->setFocus(); msgEdit->setFocus();
} }