Disable resolution spinboxes when "Custom" resolution is not set.

This commit is contained in:
Jonathan Young 2014-05-09 17:41:45 +10:00
parent 3ea451a168
commit 78d3bd02c3

View file

@ -179,6 +179,17 @@ void ioLaunch::on_cbResolution_currentIndexChanged(int index)
// Predefined.
settings.setResolutionMode(index - 2);
}
if (index == 1)
{
ui->sbWidth->setEnabled(true);
ui->sbHeight->setEnabled(true);
}
else
{
ui->sbWidth->setEnabled(false);
ui->sbHeight->setEnabled(false);
}
}
void ioLaunch::on_rbFull_toggled(bool checked)