Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong failure-msg when clearing photo-cache. #1375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

umgfoin
Copy link
Contributor

@umgfoin umgfoin commented Jan 16, 2025

bool GeophotoService::clearCache returns false, if any of the cleared caches was already empty.
Accordingly, a failure-msg is shown in the maps-GUI.
This change makes the function always return true unless an exception occurred - then false is returned.

@umgfoin umgfoin requested a review from tacruc January 16, 2025 15:04
@tacruc
Copy link
Collaborator

tacruc commented Jan 17, 2025

@come-nc What do you think? I would prefere having the Icache->clear() funktion fixed. But this is far out of our code space. So I'm fine.

@umgfoin umgfoin force-pushed the PR_fix_wrong_photocache_failure-msg branch from 3d0359b to 61dec6f Compare January 17, 2025 08:21
bool GeophotoService::clearCache returns false, if any of the cleared caches was already empty.
Accordingly a failure-msg is shown in the maps-GUI.
This change makes the function always return true unless an exception occurred - then false is returned.

Signed-off-by: umgfoin <[email protected]>
Signed-off-by: umgfoin <[email protected]>
@umgfoin umgfoin force-pushed the PR_fix_wrong_photocache_failure-msg branch from a40a929 to 2d502d7 Compare January 17, 2025 08:42
@umgfoin umgfoin enabled auto-merge January 17, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants