From 49129447178aaad6b7e49a51a42587bea80ca9c6 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 24 Jun 2019 18:35:04 -0700 Subject: [PATCH] updated PanelFocusManager to work with modular PanelWidget --- app/panel/panelfocusmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/panel/panelfocusmanager.cpp b/app/panel/panelfocusmanager.cpp index b04d53b08..1401ea8ed 100644 --- a/app/panel/panelfocusmanager.cpp +++ b/app/panel/panelfocusmanager.cpp @@ -57,7 +57,7 @@ void PanelFocusManager::FocusChanged(QWidget *old, QWidget *now) // Force the old panel to repaint (if there is one) so it hides its border if (!focus_history_.isEmpty()) { - focus_history_.first()->update(); + focus_history_.first()->SetBorderVisible(false); } // If it's not in the focus history, prepend it, otherwise move it @@ -68,7 +68,7 @@ void PanelFocusManager::FocusChanged(QWidget *old, QWidget *now) } // Force the panel to repaint so it shows a border - panel_cast_test->update(); + panel_cast_test->SetBorderVisible(true); break; }