aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_DatabaseView.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-06-05 14:58:09 -0700
committerrtk0c <[email protected]>2021-06-05 14:58:09 -0700
commitd3fa128d5408673b0ea8d3ba3435c38b258a5e7a (patch)
tree20ff77021bae4dc69f0bba4d1b65330e0301600a /core/src/UI/UI_DatabaseView.cpp
parentbeb1f3969e13af72bd9098d484b693e397cf7235 (diff)
Merge UIState into GlobalStates
Diffstat (limited to 'core/src/UI/UI_DatabaseView.cpp')
-rw-r--r--core/src/UI/UI_DatabaseView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/UI/UI_DatabaseView.cpp b/core/src/UI/UI_DatabaseView.cpp
index 06326ae..bd0efa5 100644
--- a/core/src/UI/UI_DatabaseView.cpp
+++ b/core/src/UI/UI_DatabaseView.cpp
@@ -1,9 +1,9 @@
#include "UI.hpp"
#include "Model/Filter.hpp"
+#include "Model/GlobalStates.hpp"
#include "Model/Project.hpp"
#include "UI/Localization.hpp"
-#include "UI/States.hpp"
#include "Utils/ScopeGuard.hpp"
#include "Utils/Time.hpp"
@@ -650,14 +650,14 @@ public:
void UI::DatabaseViewTab()
{
auto ls = LocaleStrings::Instance.get();
- auto& uis = UIState::GetInstance();
+ auto& gs = GlobalStates::GetInstance();
static Project* currentProject = nullptr;
static SalesTableView sales;
static PurchasesTableView purchases;
- if (currentProject != uis.CurrentProject.get()) {
- currentProject = uis.CurrentProject.get();
+ if (currentProject != gs.GetCurrentProject()) {
+ currentProject = gs.GetCurrentProject();
sales.OnProjectChanged(currentProject);
purchases.OnProjectChanged(currentProject);
}