mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 19:36:57 +03:00
Fix settings dialog when offline
This commit is contained in:
parent
ecc80bd763
commit
8650aa81f0
1 changed files with 4 additions and 0 deletions
|
|
@ -269,6 +269,10 @@ void SettingsDialog::refreshUpdateChannelDesc()
|
|||
// Get the channel list.
|
||||
QList<UpdateChecker::ChannelListEntry> channelList = MMC->updateChecker()->getChannelList();
|
||||
int selectedIndex = ui->updateChannelComboBox->currentIndex();
|
||||
if(selectedIndex < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (selectedIndex < channelList.count())
|
||||
{
|
||||
// Find the channel list entry with the given index.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue