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

Merge branch 'pr1669'

This commit is contained in:
tux3 2015-05-17 20:13:19 +02:00
commit 354347f5ea
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -150,7 +150,9 @@ void ProfileForm::copyIdClicked()
toxId->selectAll();
QString txt = toxId->text();
txt.replace('\n',"");
QApplication::clipboard()->setText(txt);
QApplication::clipboard()->setText(txt, QClipboard::Clipboard);
if (QApplication::clipboard()->supportsSelection())
QApplication::clipboard()->setText(txt, QClipboard::Selection);
toxId->setCursorPosition(0);
if (!hasCheck)