|
|
@ -303,6 +303,8 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
public ActionResult SaveQuality(QualityModel data)
|
|
|
|
public ActionResult SaveQuality(QualityModel data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (ModelState.IsValid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_configProvider.SetValue("DefaultQualityProfile", data.DefaultProfileId.ToString());
|
|
|
|
_configProvider.SetValue("DefaultQualityProfile", data.DefaultProfileId.ToString());
|
|
|
|
|
|
|
|
|
|
|
@ -312,7 +314,6 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
_qualityProvider.Delete(dbProfile.ProfileId);
|
|
|
|
_qualityProvider.Delete(dbProfile.ProfileId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var profile in data.UserProfiles)
|
|
|
|
foreach (var profile in data.UserProfiles)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Logger.Debug(String.Format("Updating User Profile: {0}", profile));
|
|
|
|
Logger.Debug(String.Format("Updating User Profile: {0}", profile));
|
|
|
@ -336,6 +337,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
_qualityProvider.Add(profile);
|
|
|
|
_qualityProvider.Add(profile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|