From 78d3bd02c33fd0f58ad3c0461e08abd7899e0396 Mon Sep 17 00:00:00 2001 From: Jonathan Young Date: Fri, 9 May 2014 17:41:45 +1000 Subject: [PATCH] Disable resolution spinboxes when "Custom" resolution is not set. --- mainwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index a9cd1b5..8328117 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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)