Bug 101052

Summary: Info List View : Adding File remove Meta Data (Reload needed)
Product: [Applications] konqueror Reporter: Sebastien <slaout>
Component: file list viewAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sebastien 2005-03-07 20:59:15 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources

* Open a directory containing MP3s or images
* Switch to "Info List View" view (View -> View Type -> Info List View)
* Wait Konquror to load Meta Data in the view
* Now, add (paste) a file into this folder
* All meta-data will dissappear, but the new file will have meta-data inside
* Press Reload and all is back in the good order (every file have meta-data displayed on side of it)

Obviously, when adding/pasting a file, meta-data should stay, only the new file should load its meta-data.

As a side effect, I like to paste a cover.png file into a directory full of MP3s: the meta-data, *after a refresh*, still display song meta-data (and not image meta-data like resolution, what I don't care of my songs folder).
When fixing this bug, please consider to keep this behaviour.
Because when pasting a picture in a songs folder, meta-data show pictures-related meta-data, what it shouldn't (and what it doesn't do after a refresh).
Comment 1 Pascal Létourneau 2005-03-18 23:42:15 UTC
CVS commit by pletourn: 

Don't clear the old metainfos after adding a new item
BUG:101052


  M +3 -1      konq_infolistviewwidget.cc   1.11.4.1


--- kdebase/konqueror/listview/konq_infolistviewwidget.cc  #1.11:1.11.4.1
@@ -223,4 +223,5 @@ void KonqInfoListViewWidget::slotNewItem
     slotUpdateBackground();
 
+    if ( !m_favorite.mimetype )
     determineCounts(list);
 
@@ -278,4 +279,5 @@ void KonqInfoListViewWidget::slotClear()
     delete m_metaInfoJob;
     m_metaInfoJob = 0;
+    m_favorite = KonqILVMimeType();
 
     KonqBaseListViewWidget::slotClear();