From 1e3836cb9f8fd5c2798c930a60c1ab0fa6346d2c Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 17 Jul 2020 17:37:15 +0200 Subject: [PATCH] Fix type mismatch warning --- AdaptiveBrightness/main_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }