diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2021-03-06 20:26:21 +0100 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2021-03-06 20:29:50 +0100 |
| commit | 0396fdb01d12e51bd2cc63478819b366c0453d29 (patch) | |
| tree | 082fcd53b7b61c0dc2a0dc6b676729e155c07fd2 /src/protocols/abouthandler.cpp | |
| parent | 21c821c49ef82d1e84b0b9c8c3d357dc559479d4 (diff) | |
| download | kristall-0396fdb01d12e51bd2cc63478819b366c0453d29.tar.gz | |
Moves all globals into a structure that can be deleted before the app exists. Fixes #193.
Diffstat (limited to 'src/protocols/abouthandler.cpp')
| -rw-r--r-- | src/protocols/abouthandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
