Bug 387761

Summary: errorText is empty when moving or copying file to a location without free space, leading to an unnecessary space in the "disk full" message.
Product: [Frameworks and Libraries] frameworks-kio Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs-null, nate, simonandric5
Priority: NOR    
Version First Reported In: 5.48.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2017-12-10 08:53:24 UTC
Created attachment 109285 [details]
screenshot

try copy/move data to a location without enough free space
a red bar appears in dolphin, its content contains unncessary space before one of the periods. See my screenshot.
Comment 1 Nate Graham 2017-12-11 14:02:18 UTC
This is in kio/src/core/job_error.cpp. The error message is doing this:

result = i18n("Could not write file %1.\nDisk full.",  errorText);

So when errorText is empty, there will be an extra space. The bigger question may be why errorText is empty in the first place.
Comment 2 Patrick Silva 2018-10-15 15:55:52 UTC
cannot reproduce on Arch Linux after upgrade to frameworks 5.51.
Comment 3 Nate Graham 2018-10-15 16:19:28 UTC
Hah, this was fixed incidentally as a part of some other thing I did recently.
Comment 4 Patrick Silva 2018-10-15 16:25:15 UTC
Awesome hehe.
Thank you Nate.
Comment 5 Nate Graham 2018-10-15 16:27:22 UTC
You're very welcome!