Bug 166832

Summary: Resize to long window upon double clicking track with very long artist description
Product: [Applications] amarok Reporter: Maarten Wisse <Maarten.Wisse>
Component: PlaylistAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.0-SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the resize bug

Description Maarten Wisse 2008-07-17 14:06:49 UTC
Version:           2.0-SVN (using KDE 4.0.98)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.2 
OS:                Linux

Hopefully this reproduces it reliably with a snapshot from yesterday:

Have a track in your playlist with a very long artist title. here is one that triggers the bug:

Amsterdam Baroque Orchestra / Ton Koopman / Johannette Zomer en Bettina Pahn, sopraan. Bogna Bartosz, alt. Jörg Dürmüller, tenor. Klaus Mertens, bas.

All in one artist tag.

Double click on the track in the playlist when the window is of normal size.

Amarok's main window will resize to an enormously long window (screenshot attached, although that shows only the length, not the content of the whole window).

This window cannot be resized anymore.

In addition, with compositing enabled, the screen turns black, similar to the problem described in #166831. Escape does not help here, however. Disabling compositing effects brings back the contents of the main Amarok window. The music plays properly.
Comment 1 Maarten Wisse 2008-07-17 14:08:12 UTC
Created attachment 26203 [details]
screenshot of the resize bug
Comment 2 Mark Kretschmann 2008-07-17 15:04:33 UTC
I can confirm this. Just happened to me as well.

Technical note: we need to use QFontmetrics::elidedText() here.
Comment 3 Edward Hades 2008-07-31 14:42:49 UTC
SVN commit 840128 by hades:

Fixed status bar limiting shrinking capacity of amarok main window.
Patch by Daniel Molkentin <danimo@kde.org>.
BUG: 166832


 M  +3 -0      ChangeLog  
 M  +1 -0      src/statusbar/StatusBar.cpp  
 M  +4 -1      src/statusbar/StatusBarBase.cpp  
 M  +2 -1      src/statusbar/StatusBarBase.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=840128