From 6cd3614641ea3fddd19e456741483a6aaf0a4ea9 Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 12 Mar 2019 21:55:15 -0700 Subject: [PATCH] Fixed a minor order of operations bugs that was causing focus via click to not work properly in all cases. --- src/musikcube/cursespp/LayoutBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcube/cursespp/LayoutBase.cpp b/src/musikcube/cursespp/LayoutBase.cpp index 5be451845..ad9175157 100755 --- a/src/musikcube/cursespp/LayoutBase.cpp +++ b/src/musikcube/cursespp/LayoutBase.cpp @@ -263,8 +263,8 @@ bool LayoutBase::SetFocus(IWindowPtr focus) { else { for (size_t i = 0; i < this->focusable.size(); i++) { if (this->focusable[i] == focus) { - this->EnsureValidFocus(); this->focused = i; + this->EnsureValidFocus(); return true; } }