Commit 96981373 authored by Luigi Toscano's avatar Luigi Toscano

Remove the outdated "home_page" action

- optional entry for the toolbar which is most likely never
  explicitly added;
- the canonical link to the homepage is provided by KAboutData
  inside the about box;
- the link point to the original homepage and should be changed
  anyway.
parent 33fb1fee
......@@ -49,7 +49,6 @@
#include <KJobWidgets>
#include <KLocalizedString>
#include <KMessageBox>
#include <KRun>
#include <KSharedConfig>
#include <KStandardAction>
#include <KStandardGameAction>
......@@ -383,11 +382,6 @@ void KSudoku::showWelcomeScreen() {
m_welcomeScreen->show();
}
void KSudoku::homepage()
{
KRun::runUrl (QUrl("http://ksudoku.sourceforge.net/"), "text/html", this, KRun::RunFlags());
}
void KSudoku::giveHint()
{
Game game = currentGame();
......@@ -499,13 +493,6 @@ void KSudoku::setupActions()
a->setIcon(QIcon::fromTheme( QLatin1String( "games-endturn" )));
connect(a, &QAction::triggered, this, &KSudoku::dubPuzzle);
addAction(a);
//WEB
a = new QAction(this);
actionCollection()->addAction( QLatin1String( "home_page" ), a);
a->setText(i18n("Home Page"));
a->setIcon(QIcon::fromTheme( QLatin1String( "internet-web-browser" )));
connect(a, &QAction::triggered, this, &KSudoku::homepage);
}
void KSudoku::setupStatusBar (int difficulty, int symmetry)
......
......@@ -138,9 +138,6 @@ private slots:
// void updateStatusBar();
// void changeStatusbar(const QString& text);
void homepage();
void onModified(bool isModified);
void enableMessages();
......
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