Commit 23ab7fba authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Port away from KMimeType.

parent 208f5d07
......@@ -26,12 +26,13 @@
#include "transactions/kgpgimport.h"
#include <QFile>
#include <QMimeDatabase>
#include <QMimeType>
#include <QTextStream>
#include <KCmdLineArgs>
#include <KMessageBox>
#include <KWindowSystem>
#include <KMimeType>
using namespace KgpgCore;
......@@ -117,11 +118,13 @@ int KGpgApp::newInstance()
urlList.append(args->url(ct));
bool directoryInside = false;
foreach (const KUrl &url, urlList)
if (KMimeType::findByUrl(url)->name() == QLatin1String( "inode/directory" )) {
foreach (const KUrl &url, urlList) {
QMimeDatabase db;
if (db.mimeTypeForUrl(url).name() == QLatin1String( "inode/directory" )) {
directoryInside = true;
break;
}
}
if (args->isSet("e")) {
if (urlList.isEmpty())
......
Supports Markdown
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