Fix type mismatch warning

master
BlackMark 2020-07-17 17:37:15 +02:00
parent 7ea9638488
commit 1e3836cb9f
1 changed files with 2 additions and 2 deletions

View File

@ -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<int>(i)) {
updateCurrentMonitorGUI(static_cast<int>(i));
}
}