diff --git a/kstars/kstarsinit.cpp b/kstars/kstarsinit.cpp index 7c3ae04db3edd97fbda38a346d0415eafee7653b..e4112c638c0daed42804fffac86d9b88233b3375 100644 --- a/kstars/kstarsinit.cpp +++ b/kstars/kstarsinit.cpp @@ -43,7 +43,6 @@ #include #include #include -#include #include #include @@ -154,12 +153,13 @@ void KStars::initActions() QAction *ka; // ==== File menu ================ - ka = KNS3::standardAction(i18n("Download New Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data") - << QKeySequence(Qt::CTRL + Qt::Key_N); - ka->setIcon(QIcon::fromTheme("favorites")); + ka = new QAction(QIcon::fromTheme("favorites"), i18n("Download New Data..."), this); + connect(ka, &QAction::triggered, this, &KStars::slotDownload); + ka->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N)); ka->setWhatsThis(i18n("Downloads new data")); ka->setToolTip(ka->whatsThis()); ka->setStatusTip(ka->whatsThis()); + actionCollection()->addAction(QStringLiteral("get_data"), ka); #ifdef HAVE_CFITSIO actionCollection()->addAction("open_file", this, SLOT(slotOpenFITS()))