1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge branch 'pr978'

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2015-01-04 15:07:36 +01:00
commit 10a2213e66
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void ChatAreaWidget::mouseReleaseEvent(QMouseEvent * event)
QTextCursor cursor(document());
cursor.setPosition(pos);
if(!cursor.atEnd())
if (!cursor.atEnd())
{
cursor.setPosition(pos+1);

View File

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