Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KFind
Commits
cfd077f1
Commit
cfd077f1
authored
Aug 09, 2022
by
Nicolas Fella
Committed by
Albert Astals Cid
Aug 23, 2022
Browse files
Remove handling for nonexistant mime types
These are old KDE-specific mimetypes not part of shared-mime-info/QMimeDatabase
parent
b2520628
Pipeline
#221767
passed with stage
in 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kftabdlg.cpp
View file @
cfd077f1
...
...
@@ -333,9 +333,7 @@ KfindTabWidget::KfindTabWidget(QWidget *parent)
const
auto
types
=
QMimeDatabase
().
allMimeTypes
();
for
(
const
QMimeType
&
type
:
types
)
{
if
((
!
type
.
comment
().
isEmpty
())
&&
(
!
type
.
name
().
startsWith
(
QLatin1String
(
"kdedevice/"
)))
&&
(
!
type
.
name
().
startsWith
(
QLatin1String
(
"all/"
))))
{
if
(
!
type
.
comment
().
isEmpty
())
{
mimeTypes
.
all
.
append
(
type
);
if
(
type
.
name
().
startsWith
(
QLatin1String
(
"image/"
)))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment