mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 19:30:26 +08:00
fix: fixed auto connection combobox when autoStartGroupId is null
This commit is contained in:
parent
e25fbfaecf
commit
002bc4b7d1
@ -1 +1 @@
|
||||
5756
|
||||
5757
|
||||
|
@ -213,6 +213,11 @@ PreferencesWindow::PreferencesWindow(QWidget *parent) : QvDialog(parent), Curren
|
||||
//
|
||||
SET_AUTOSTART_UI_ENABLED(CurrentConfig.autoStartBehavior == AUTO_CONNECTION_FIXED);
|
||||
//
|
||||
if (CurrentConfig.autoStartId.isEmpty())
|
||||
{
|
||||
CurrentConfig.autoStartId.groupId = DefaultGroupId;
|
||||
}
|
||||
//
|
||||
auto autoStartConnId = CurrentConfig.autoStartId.connectionId;
|
||||
auto autoStartGroupId = CurrentConfig.autoStartId.groupId;
|
||||
//
|
||||
@ -698,7 +703,8 @@ void PreferencesWindow::on_setSysProxyCB_stateChanged(int arg1)
|
||||
|
||||
void PreferencesWindow::on_autoStartSubsCombo_currentIndexChanged(const QString &arg1)
|
||||
{
|
||||
LOADINGCHECK if (arg1.isEmpty())
|
||||
LOADINGCHECK
|
||||
if (arg1.isEmpty())
|
||||
{
|
||||
CurrentConfig.autoStartId.clear();
|
||||
autoStartConnCombo->clear();
|
||||
|
Loading…
Reference in New Issue
Block a user