Commit 1675fc86 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[comic applet] Use KNotification::event() variant with theme icon name

Allows rendering-to-pixel by notification displayer and avoids dep
on KF5::IconThemes
parent c530bcab
......@@ -31,7 +31,6 @@ target_link_libraries(plasma_applet_comic
KF5::KIOWidgets
KF5::NewStuff
KF5::Notifications
KF5::IconThemes
KF5::Archive)
......
......@@ -42,7 +42,6 @@
#include <KNewStuff3/KNS3/DownloadDialog>
#include <KRun>
#include <KStandardShortcut>
#include <KIconLoader>
#include <Plasma/Containment>
#include <Plasma/Package>
......@@ -476,7 +475,7 @@ void ComicApplet::slotArchive( int archiveType, const QUrl &dest, const QString
void ComicApplet::slotArchiveFinished (KJob *job )
{
if ( job->error() ) {
KNotification::event( KNotification::Warning, i18n( "Archiving comic failed" ), job->errorText(), QIcon::fromTheme(QStringLiteral("dialog-warning")).pixmap(KIconLoader::SizeMedium));
KNotification::event(KNotification::Warning, i18n("Archiving comic failed"), job->errorText(), QStringLiteral("dialog-warning"));
}
}
......
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