WSL/SLF GitLab Repository

Commit 17343e01 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

Move 'bug report' menu

parent 5de87db4
......@@ -97,11 +97,6 @@ void HelpWindow::createMenu()
{
/* FILE menu */
QMenu *menu_file = this->menuBar()->addMenu(tr("&File"));
auto *file_bugreport_ = new QAction(tr("File &bug report..."), menu_file);
menu_file->addAction(file_bugreport_);
connect(file_bugreport_, &QAction::triggered,
[]{ QDesktopServices::openUrl(QUrl("https://models.slf.ch/p/inishell-ng/issues/")); });
menu_file->addSeparator();
auto *file_close = new QAction(getIcon("application-exit"), tr("&Close help"), menu_file);
file_close->setShortcut(QKeySequence::Close);
menu_file->addAction(file_close);
......@@ -132,6 +127,10 @@ void HelpWindow::createMenu()
menu_view->addAction(view_online_help);
connect(view_online_help, &QAction::triggered, this,
[=]{ QDesktopServices::openUrl(QUrl("https://models.slf.ch/p/inishell-ng/doc/")); });
auto *view_file_bugreport_ = new QAction(tr("File &bug report..."), menu_file);
menu_view->addAction(view_file_bugreport_);
connect(view_file_bugreport_, &QAction::triggered,
[]{ QDesktopServices::openUrl(QUrl("https://models.slf.ch/p/inishell-ng/issues/")); });
auto *show_paper = new QAction(tr("Show &paper..."), menu_view);
menu_view->addAction(show_paper);
connect(show_paper, &QAction::triggered, this, [=]{ QDesktopServices::openUrl(QUrl(":doc/paper.pdf")); });
......
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