Bug 476302

Summary: Deleted files are still counted in project statistics
Product: [Applications] lokalize Reporter: Yaron Shahrabani <sh.yaron>
Component: project managementAssignee: Simon Depiets <sdepiets>
Status: REPORTED ---    
Severity: normal CC: aacid, shafff
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yaron Shahrabani 2023-10-29 19:34:48 UTC
SUMMARY
***
Sometimes it's easier for me to combine several different localization tools so then I find myself downloading POT files to the project folders and convert them to po using Poedit.
After I'm done with the translation I'm removing the POT and mo file, the statistics in Lokalize (Project overview) still count the strings for statistics although the file is not there.
***


STEPS TO REPRODUCE
1.  Create or use your project.
2. Go to the Project Overview tab.
3. Select one of the folders in your project.
4. Download some POT file into it.
5. Remove the POT file.

OBSERVED RESULT
The file still appears and the statistics show that there are some missing strings (the number of strings in the POT file).

EXPECTED RESULT
The file should disappear once removed and the statistics should be recalculated, at least for this specific folder.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.5-1-MANJARO (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I wish there was a manual way to reload, F5 and Ctrl+R are not working, I can restart Lokalize but that's not a good way to reload and it's very time consuming.