Bug 501109 - KIO warning using FileDialog
Summary: KIO warning using FileDialog
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-05 18:08 UTC by Thiago Sueto
Modified: 2025-03-05 18:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2025-03-05 18:08:00 UTC
I'm making a simple QML app. It has a couple FileDialog instances with the following nameFilters:

```
nameFilters: ["Music files (*.mp3 *.wav *.flac *.ogg *.opus)"]
// ...
nameFilters: ["LRC files (*.lrc)"]
```

I seem to always get a runtime warning like:

```
kf.kio.filewidgets.kfilefiltercombo: KFileFilterCombo::setCurrentFilter: Could not find file filter KFileFilter(MIME patterns: QList() File patterns: QList("*.lrc") label: "LRC files")
```

whenever I open a file dialog on Plasma, even though I'm not using any KIO API. How would I go about fixing this warning? This warning is very cryptic and I don't understand it.

The code is in https://codeberg.org/herzenschein/klrc