diff --git a/AdaptiveBrightness/main_window.cpp b/AdaptiveBrightness/main_window.cpp index 2d7bb18..c1b9b32 100644 --- a/AdaptiveBrightness/main_window.cpp +++ b/AdaptiveBrightness/main_window.cpp @@ -347,8 +347,8 @@ bool MainWindow::setMonitorBrightness(float brightness) if(!m_monitors[i].driver.setBrightness(m_monitors[i].brightness)) { errorOccurred = true; } - else if(m_ui.monitorDropdown->currentIndex() == i) { - updateCurrentMonitorGUI(i); + else if(m_ui.monitorDropdown->currentIndex() == static_cast(i)) { + updateCurrentMonitorGUI(static_cast(i)); } }