Bug 439475

Summary: Wrong blu-ray sizes (25.0 GiB and 50.0 GiB instead of 23.3 GiB and 46.6 GiB) in the context menu of the disc space bar
Product: [Applications] k3b Reporter: Patrick Silva <bugseforuns>
Component: Data ProjectAssignee: k3b developers <k3b>
Status: RESOLVED FIXED    
Severity: normal CC: michalm, trueg
Priority: NOR    
Version: 21.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 25 GiB chosen in the context menu
50.0 GiB chosen in the context menu

Description Patrick Silva 2021-07-04 14:09:36 UTC
Created attachment 139844 [details]
25 GiB chosen in the context menu

STEPS TO REPRODUCE
1. open K3b
2. create a data project
3. right-click on disc space bar on bottom
4. choose any option under "Blu-ray size"
5. right-click on disc space bar on bottom again

OBSERVED RESULT
the blu-ray sizes available in the context menu are wrong:
25.0 GiB
50.0 GiB

The disc space bar on bottom displays the correct sizes:
23.3 GiB if 25.0 GiB was chosen in the context menu
46.6 GiB if 50.0 GiB was chosen in the context menu

EXPECTED RESULT
blu-ray sizes available in the context menu should be 23.3 GiB
and 46.6 GiB

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83
Qt Version: 5.15.2

ADDITIONAL INFORMATION
The screenshots were taken on Gnome but the bug is also reproducible on KDE Plasma.
Comment 1 Patrick Silva 2021-07-04 14:10:37 UTC
Created attachment 139845 [details]
50.0 GiB chosen in the context menu
Comment 2 Bug Janitor Service 2021-07-04 19:18:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/k3b/-/merge_requests/14
Comment 3 Albert Astals Cid 2021-07-09 22:31:44 UTC
Git commit 88d5782eee8f60bd2c022d16ac82304c94c04245 by Albert Astals Cid.
Committed on 09/07/2021 at 22:31.
Pushed by aacid into branch 'master'.

Menu: Get bluray sizes from k3b itself instead of hardcoding

M  +2    -2    src/projects/k3bfillstatusdisplay.cpp

https://invent.kde.org/multimedia/k3b/commit/88d5782eee8f60bd2c022d16ac82304c94c04245