Commit c7133578 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove the KIO dependency

I'm just sick and tired of people complaining krita needs "all of
KDE" because some distributions pull in kwallet just because we
use KIO for registering recently used files with the desktop.
parent 25a91c6b
......@@ -356,14 +356,6 @@ if (NOT WIN32 AND NOT APPLE)
TYPE OPTIONAL
PURPOSE "Optionally used to provide a dbus api on Linux")
find_package(KF5KIO ${MIN_FRAMEWORKS_VERSION})
macro_bool_to_01(KF5KIO_FOUND HAVE_KIO)
set_package_properties(KF5KIO PROPERTIES
DESCRIPTION "KDE's KIO Framework"
URL "http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/index.html"
TYPE OPTIONAL
PURPOSE "Optionally used for recent document handling")
find_package(KF5Crash ${MIN_FRAMEWORKS_VERSION})
macro_bool_to_01(KF5Crash_FOUND HAVE_KCRASH)
set_package_properties(KF5Crash PROPERTIES
......
......@@ -49,9 +49,6 @@
/* Defines if we use lcms2.4 */
#cmakedefine HAVE_LCMS24 1
/* Defines if KIO is present */
#cmakedefine HAVE_KIO 1
/* Defines if DBUS is present */
#cmakedefine HAVE_DBUS 1
......
......@@ -547,10 +547,6 @@ if (HAVE_QT_MULTIMEDIA)
target_link_libraries(kritaui Qt5::Multimedia)
endif()
if (HAVE_KIO)
target_link_libraries(kritaui KF5::KIOCore)
endif()
if (NOT WIN32 AND NOT APPLE)
target_link_libraries(kritaui ${X11_X11_LIB}
${X11_Xinput_LIB}
......
......@@ -74,9 +74,6 @@
#include "kis_selection_manager.h"
#include "kis_icon_utils.h"
#ifdef HAVE_KIO
#include <krecentdocument.h>
#endif
#include <krecentfilesaction.h>
#include <KoResourcePaths.h>
#include <ktoggleaction.h>
......@@ -728,17 +725,7 @@ void KisMainWindow::addRecentURL(const QUrl &url)
break;
}
}
#ifdef HAVE_KIO
if (ok) {
KRecentDocument::add(QUrl::fromLocalFile(path));
}
#endif
}
#ifdef HAVE_KIO
else {
KRecentDocument::add(url.adjusted(QUrl::StripTrailingSlash));
}
#endif
if (ok) {
d->recentFiles->addUrl(url);
}
......
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