Fix type mismatch warning

This commit is contained in:
BlackMark 2020-07-17 17:37:15 +02:00
parent 7ea9638488
commit 1e3836cb9f

View File

@ -347,8 +347,8 @@ bool MainWindow::setMonitorBrightness(float brightness)
if(!m_monitors[i].driver.setBrightness(m_monitors[i].brightness)) { if(!m_monitors[i].driver.setBrightness(m_monitors[i].brightness)) {
errorOccurred = true; errorOccurred = true;
} }
else if(m_ui.monitorDropdown->currentIndex() == i) { else if(m_ui.monitorDropdown->currentIndex() == static_cast<int>(i)) {
updateCurrentMonitorGUI(i); updateCurrentMonitorGUI(static_cast<int>(i));
} }
} }