Commit 8baafc53 authored by Albert Astals Cid's avatar Albert Astals Cid

Use KAboutData window icon if avaiable for the AboutApp menu

Reviewed by Aleix
parent 771adf22
......@@ -24,6 +24,7 @@
#include <QToolButton>
#include <QApplication>
#include <kaboutdata.h>
#include <klocalizedstring.h>
#include <kstandardshortcut.h>
#include <kacceleratormanager.h>
......@@ -152,9 +153,16 @@ QAction *create(StandardAction id, const QObject *recvr, const char *slot, QObje
// Same as default, but with the app icon
case AboutApp:
pAction = new QAction(parent);
icon = qApp->windowIcon();
const KAboutData data = KAboutData::applicationData();
if (!data.programIconName().isEmpty()) {
icon = QIcon::fromTheme(data.programIconName());
} else {
icon = qApp->windowIcon();
pAction = new QAction(parent);
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