prevent crash

This commit is contained in:
RickyRister 2024-12-28 14:08:32 -08:00
parent a822ebc16a
commit 54ab0ea4aa

View file

@ -292,7 +292,7 @@ public:
}
ReleaseChannel *getUpdateReleaseChannel() const
{
return releaseChannels.at(updateReleaseChannel);
return releaseChannels.at(qMax(0, updateReleaseChannel));
}
QList<ReleaseChannel *> getUpdateReleaseChannels() const
{