allow deleteing built-in profiles

This commit is contained in:
Nova 2025-06-29 19:00:32 +03:30
parent abd9ce37ef
commit 7235743198

View File

@ -302,10 +302,6 @@ void DialogManageRoutes::on_delete_route_clicked() {
}
auto profileToDel = chainList[idx];
if (profileToDel->isViewOnly()) {
MessageBoxInfo(tr("Profile is Read-only"), tr("Cannot delete built-in profiles"));
return;
}
chainList.removeAt(idx);
if (profileToDel == currentRoute) {
currentRoute = chainList[0];