Bug 157577

Summary: GUI columns are duplicated
Product: [Applications] kdf Reporter: Oleg Atamanenko <oleg.atamanenko+kde>
Component: generalAssignee: Michael Kropfberger <michael.kropfberger>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: KDF Screenshot with incorrect GUI.
Patch to fix duplicated columns

Description Oleg Atamanenko 2008-02-10 08:10:42 UTC
Version:           v0.5 (using 4.0.1 (KDE 4.0.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.23-1-686

KDF shows all columns several times. It shows me
icon, device, type, size, mount point, free, full, usage  4 times!

Screenshot attached.
Comment 1 Oleg Atamanenko 2008-02-10 08:11:38 UTC
Created attachment 23512 [details]
KDF Screenshot with incorrect GUI.
Comment 2 Christoph Feck 2008-06-13 15:37:45 UTC
makeColumns() is called multiple times, so this function should remove any columns before adding new ones.  A simple

for (int i = 0; i < mList->columns(); ++i) mList->removeColumn(i);

before adding the columns should help (similar code is in the comment, I do not understand why it was removed).
Comment 3 Christoph Feck 2008-06-13 16:06:09 UTC
Created attachment 25307 [details]
Patch to fix duplicated columns
Comment 4 Albert Astals Cid 2008-06-20 18:44:09 UTC
SVN commit 822558 by aacid:

Fix GUI columns are duplicated

Patch by Christoph Feck

BUG: 157577


 M  +2 -0      kdfwidget.cpp  


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