mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
fix: fixed batch latency test, close #712
This commit is contained in:
parent
315ee055cb
commit
148f91c83f
@ -1 +1 @@
|
|||||||
5688
|
5689
|
||||||
|
@ -1034,17 +1034,17 @@ void MainWindow::on_action_RCM_UpdateSubscription_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_action_RCM_LatencyTest_triggered()
|
void MainWindow::on_action_RCM_LatencyTest_triggered()
|
||||||
{
|
{
|
||||||
auto current = connectionListWidget->currentItem();
|
for (const auto ¤t : connectionListWidget->selectedItems())
|
||||||
if (current != nullptr)
|
|
||||||
{
|
{
|
||||||
auto widget = GetItemWidget(current);
|
if (!current)
|
||||||
if (widget)
|
continue;
|
||||||
{
|
const auto widget = GetItemWidget(current);
|
||||||
if (widget->IsConnection())
|
if (!widget)
|
||||||
ConnectionManager->StartLatencyTest(widget->Identifier().connectionId);
|
continue;
|
||||||
else
|
if (widget->IsConnection())
|
||||||
ConnectionManager->StartLatencyTest(widget->Identifier().groupId);
|
ConnectionManager->StartLatencyTest(widget->Identifier().connectionId);
|
||||||
}
|
else
|
||||||
|
ConnectionManager->StartLatencyTest(widget->Identifier().groupId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user