Skip to content

Commit

Permalink
Fix a problem I re-introduced from merge with x-scheme-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-ISU committed Jan 3, 2022
1 parent fd5ce7a commit 4e8501d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selectdefaultapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void SelectDefaultApplication::setDefault(const QString &appName, QSet<QString>
continue;
}

const QString mimetype = m_mimeDb.mimeTypeForName(line.split('=').first().trimmed()).name();
const QString mimetype = wrapperMimeTypeForName(line.split('=').first().trimmed());
// If we aren't setting this mimetype, leave any entry, even others that this application owns
if (!mimetypes.contains(mimetype)) {
existingAssociations.append(line);
Expand Down

0 comments on commit 4e8501d

Please sign in to comment.