Commit 3d0be7b1 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port from KMimeTypeTrader to KApplicationTrader

The former will be deprecated soon.
parent ea07d02e
......@@ -16,7 +16,7 @@
#include <KLocalizedString>
#include <KPropertiesDialog>
#include <KFileItem>
#include <KMimeTypeTrader>
#include <KApplicationTrader>
#include <KActionCollection>
#include <KMessageBox>
......@@ -679,7 +679,7 @@ void Selector::populateOpenMenu()
KFileItem fileItem(sourceUrl);
QString mimeType(fileItem.determineMimeType().name());
const KService::List services = KMimeTypeTrader::self()->query(mimeType);
const KService::List services = KApplicationTrader::queryByMimeType(mimeType);
for (const KService::Ptr &service : services)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment