mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Copy ToxID into XA_PRIMARY clipboard too to make retrieval easier.
This commit is contained in:
parent
09503f0bfa
commit
cfd04d22d9
|
@ -150,7 +150,9 @@ void ProfileForm::copyIdClicked()
|
||||||
toxId->selectAll();
|
toxId->selectAll();
|
||||||
QString txt = toxId->text();
|
QString txt = toxId->text();
|
||||||
txt.replace('\n',"");
|
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);
|
toxId->setCursorPosition(0);
|
||||||
|
|
||||||
if (!hasCheck)
|
if (!hasCheck)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user