From 0396fdb01d12e51bd2cc63478819b366c0453d29 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Mar 2021 20:26:21 +0100 Subject: Moves all globals into a structure that can be deleted before the app exists. Fixes #193. --- src/protocols/abouthandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols/abouthandler.cpp') diff --git a/src/protocols/abouthandler.cpp b/src/protocols/abouthandler.cpp index 46fa643..13bc098 100644 --- a/src/protocols/abouthandler.cpp +++ b/src/protocols/abouthandler.cpp @@ -30,7 +30,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions QString current_group; - for (auto const &fav : kristall::favourites.allFavourites()) + for (auto const &fav : kristall::globals().favourites.allFavourites()) { if(current_group != fav.first) { @@ -54,7 +54,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions QByteArray document; document.append("# Cache information\n"); - auto& cache = kristall::cache.getPages(); + auto& cache = kristall::globals().cache.getPages(); long unsigned cache_usage = 0; int cached_count = 0; for (auto it = cache.begin(); it != cache.end(); ++it, ++cached_count) -- cgit v1.2.3