mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
b771f87e0b
commit
1d307bcc0e
|
@ -64,13 +64,17 @@ bool handleToxURI(const QString &toxURI)
|
|||
|
||||
QString toxaddr = toxURI.mid(4);
|
||||
|
||||
ToxId toxId = Toxme::lookup(toxaddr);
|
||||
ToxId toxId(toxaddr);
|
||||
if (!toxId.isValid())
|
||||
{
|
||||
QMessageBox::warning(0, "qTox",
|
||||
ToxURIDialog::tr("%1 is not a valid Toxme address.")
|
||||
.arg(toxaddr));
|
||||
return false;
|
||||
toxId = Toxme::lookup(toxaddr);
|
||||
if (!toxId.isValid())
|
||||
{
|
||||
QMessageBox::warning(0, "qTox",
|
||||
ToxURIDialog::tr("%1 is not a valid Toxme address.")
|
||||
.arg(toxaddr));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ToxURIDialog dialog(0, toxaddr, QObject::tr("%1 here! Tox me maybe?",
|
||||
|
|
Loading…
Reference in New Issue
Block a user