Bug 210966

Summary: currentmimefilter empty when clicking on a file, but filled when typing a filename
Product: [Applications] kfile Reporter: Halla Rempt <halla>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Halla Rempt 2009-10-18 14:19:07 UTC
Version:            (using KDE 4.3.2)
Installed from:    SuSE RPMs

I have the following code in Krita:


QStringList listMimeFilter = KoFilterManager::mimeFilter("application/x-krita", KoFilterManager::Export);
QString mimelist = listMimeFilter.join(" ");

KFileDialog fd(KUrl(QString()), mimelist, m_view);
fd.setMimeFilter(listMimeFilter);
fd.setOperationMode(KFileDialog::Saving);

if (!fd.exec()) return;

KUrl url = fd.selectedUrl();
QString mimefilter = fd.currentMimeFilter();

mimefilter turns out to be empty when I select a file by clicking on it; if I type the filename in the input box, the mimefilter is correctly set. I would expect the mimefilter to be set correctly in all cases.
Comment 1 Halla Rempt 2011-11-21 13:41:59 UTC
seems fixed...