Bug 283174

Summary: Dolphin does not wrap text in some dialogs and shows them wider than the screen
Product: [Unmaintained] kio Reporter: Marcelo Sales <mmtsales>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: korthals.timo, nate
Priority: NOR    
Version First Reported In: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A dialog that is so much wider than the screen that ksnapshot couldn't capture the complete dialog.
Super wide dialog, no text wrapping

Description Marcelo Sales 2011-10-02 12:59:52 UTC
Created attachment 64134 [details]
A dialog that is so much wider than the screen that ksnapshot couldn't capture the complete dialog.

Version:           1.6.1 (using KDE 4.6.2) 
OS:                Linux

Dolphin does not wrap the error message in some dialogs. Some times, these dialogs are displayed much wider than the screen itself, preventing the user from reading the message and, in some cases, even from accessing the buttons of the dialog.

Reproducible: Didn't try

Steps to Reproduce:
I can reproduce this error by trying to copy a file from an old CD-ROM. The file is in a directory with a very long name and the CD-ROM is defective. Every time I try to copy the file, Dolphin displays an error message saying the file could not be read and this message exceeds the horizontal size of the screen because of the long path in which the file is located. See attached screenshot.

Actual Results:  
Dolphin shows a dialog wider than the screen (much more than 1920 pixels). The error message is displayed in one line only.

Expected Results:  
The text in the dialog should be wrapped and displayed in several lines, in a reasonably sized dialog.
Comment 1 Peter Penz 2011-10-02 13:40:40 UTC
Thanks for the report. All error messages of Dolphin should be shown in the statusbar. Could you please let us know what you did to trigger this error-message shown as dialog?
Comment 2 Marcelo Sales 2011-10-02 14:24:34 UTC
Peter, I tried to copy files from an old CDROM which has defective areas. Mounted the CDROM, dragged a directory and dropped it in one of my fixed disk partitions. In the middle of the copy operation, when Dolphin reached one of the defective areas of the CDROM, I got this dialog with the error message.
Comment 3 Peter Penz 2011-10-02 14:40:04 UTC
Thanks for the update!
Comment 4 Marcelo Sales 2012-05-31 01:25:56 UTC
Created attachment 71456 [details]
Super wide dialog, no text wrapping

I've updated the version of Dolphin against which the bug is reported, because it is still present in version 2.0 (KDE SC 4.8.2, Ubuntu packages).
See screenshot.
Comment 5 korthals.timo 2014-01-04 06:14:57 UTC
This still remains in the following version:
Qt: 4.8.4
KDE Development Platform: 4.11.3
Dolphin: 4.11.3

It is a general bug that dolphin expands the dialog wider than the screen.
For reproduction just type in any abitrary folder-destination like the following (my screen is 1377 px wide):
/home/foo/asd/adhnadhjapsndhapidsni/adshjkandjhhufion/agshdingads/agsdhbgasd/agshdjbgas/agsshbadgj/agshdjfasd/gashdjbagd/aknl/ahsjdinajhsidln/ashdjinahdsjina/ashdjnahsoidnapih/ashdjnagjksdngausz/agshdknaghsdkna/aghsdjkngasd/gahsdkbagsjhda/ahsd/

Would be nice if some could add a linebreak with respect to the window/tab-width of dolphin.
Comment 6 Nate Graham 2018-05-03 20:20:12 UTC
None of the use cases mentioned above are still reproducible with KDE Frameworks 5.45 and Dolphin 18.04.0. Calling this fixed.