From afde0983df2248be32092e3872aa65181f5fc3c2 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Sat, 23 Jan 2016 08:55:35 -0600 Subject: Update mStartPage to make language selection work on other pages We should offer language selection on any start page such as decrypt or system read only. However, if the mStartPage variable was not being updated properly so selecting a different language was dumping the user back on either the decrypt prompt or the system read only page. This patch set fixes the problem and places the user back on the proper page when they choose a new language. Change-Id: I5153d3b9525d8c93d3863f4b17ecf55b5209e3c7 --- gui/pages.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/pages.cpp') diff --git a/gui/pages.cpp b/gui/pages.cpp index ddf53a92c..def262998 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -1565,6 +1565,10 @@ void PageManager::RequestReload() { mReloadTheme = true; } +void PageManager::SetStartPage(const std::string& page_name) { + mStartPage = page_name; +} + int PageManager::ChangePage(std::string name) { DataManager::SetValue("tw_operation_state", 0); -- cgit v1.2.3