Bug 210966 - currentmimefilter empty when clicking on a file, but filled when typing a filename
Summary: currentmimefilter empty when clicking on a file, but filled when typing a fil...
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-18 14:19 UTC by Halla Rempt
Modified: 2011-11-21 13:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...