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,7 +255,8 @@ void GenericChatForm::onEmoteButtonClicked()
|
||||||
|
|
||||||
void GenericChatForm::onChatWidgetClicked()
|
void GenericChatForm::onChatWidgetClicked()
|
||||||
{
|
{
|
||||||
msgEdit->setFocus();
|
if (!chatWidget->textCursor().hasSelection())
|
||||||
|
msgEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GenericChatForm::onEmoteInsertRequested(QString str)
|
void GenericChatForm::onEmoteInsertRequested(QString str)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user