mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 10:50:23 +08:00
add: added more subscription link check
This commit is contained in:
parent
b7e8ab315e
commit
14bb40aa1e
@ -1 +1 @@
|
|||||||
5766
|
5767
|
||||||
|
@ -275,6 +275,16 @@ void GroupManager::on_addGroupButton_clicked()
|
|||||||
|
|
||||||
void GroupManager::on_updateButton_clicked()
|
void GroupManager::on_updateButton_clicked()
|
||||||
{
|
{
|
||||||
|
if (subAddrTxt->text().trimmed().isEmpty())
|
||||||
|
{
|
||||||
|
QvMessageBoxWarn(this, tr("Update Subscription"), tr("The subscription link is empty."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!QUrl{ subAddrTxt->text() }.isValid())
|
||||||
|
{
|
||||||
|
QvMessageBoxWarn(this, tr("Update Subscription"), tr("The subscription link is invalid."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (QvMessageBoxAsk(this, tr("Update Subscription"), tr("Would you like to update the subscription?")) == QMessageBox::Yes)
|
if (QvMessageBoxAsk(this, tr("Update Subscription"), tr("Would you like to update the subscription?")) == QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
this->setEnabled(false);
|
this->setEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user