aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/UI_DatabaseView.cpp
diff options
context:
space:
mode:
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);
}