Replaced email menu item with a link to the bug report page on github.

This commit is contained in:
Leonardo Zide 2018-02-18 16:17:48 -08:00
parent d7cc03eb41
commit 0c9c743951
5 changed files with 10 additions and 10 deletions

View file

@ -1473,11 +1473,11 @@ lcCommand gCommands[LC_NUM_COMMANDS] =
QT_TRANSLATE_NOOP("Status", "Open LeoCAD's home page on the internet using your default web browser"), QT_TRANSLATE_NOOP("Status", "Open LeoCAD's home page on the internet using your default web browser"),
QT_TRANSLATE_NOOP("Shortcut", "") QT_TRANSLATE_NOOP("Shortcut", "")
}, },
// LC_HELP_EMAIL // LC_HELP_BUG_REPORT
{ {
QT_TRANSLATE_NOOP("Action", "Help.Email"), QT_TRANSLATE_NOOP("Action", "Help.BugReport"),
QT_TRANSLATE_NOOP("Menu", "Send Support &E-Mail"), QT_TRANSLATE_NOOP("Menu", "Report a Bug"),
QT_TRANSLATE_NOOP("Status", "Send an e-mail message for help or support using your default e-mail client"), QT_TRANSLATE_NOOP("Status", "Open LeoCAD's bug report form on your default web browser"),
QT_TRANSLATE_NOOP("Shortcut", "") QT_TRANSLATE_NOOP("Shortcut", "")
}, },
// LC_HELP_UPDATES // LC_HELP_UPDATES

View file

@ -226,7 +226,7 @@ enum lcCommandId
LC_MODEL_24, LC_MODEL_24,
LC_MODEL_LAST = LC_MODEL_24, LC_MODEL_LAST = LC_MODEL_24,
LC_HELP_HOMEPAGE, LC_HELP_HOMEPAGE,
LC_HELP_EMAIL, LC_HELP_BUG_REPORT,
LC_HELP_UPDATES, LC_HELP_UPDATES,
LC_HELP_ABOUT, LC_HELP_ABOUT,
LC_TIMELINE_INSERT, LC_TIMELINE_INSERT,

View file

@ -281,7 +281,6 @@ void lcMainWindow::CreateActions()
mActions[LC_VIEW_TIME_LAST]->setIcon(QIcon(":/resources/time_last.png")); mActions[LC_VIEW_TIME_LAST]->setIcon(QIcon(":/resources/time_last.png"));
mActions[LC_VIEW_TIME_ADD_KEYS]->setIcon(QIcon(":/resources/time_add_keys.png")); mActions[LC_VIEW_TIME_ADD_KEYS]->setIcon(QIcon(":/resources/time_add_keys.png"));
mActions[LC_HELP_HOMEPAGE]->setIcon(QIcon(":/resources/help_homepage.png")); mActions[LC_HELP_HOMEPAGE]->setIcon(QIcon(":/resources/help_homepage.png"));
mActions[LC_HELP_EMAIL]->setIcon(QIcon(":/resources/help_email.png"));
mActions[LC_EDIT_TRANSFORM_RELATIVE]->setCheckable(true); mActions[LC_EDIT_TRANSFORM_RELATIVE]->setCheckable(true);
mActions[LC_EDIT_SNAP_MOVE_TOGGLE]->setCheckable(true); mActions[LC_EDIT_SNAP_MOVE_TOGGLE]->setCheckable(true);
@ -539,11 +538,13 @@ void lcMainWindow::CreateMenus()
QMenu* HelpMenu = menuBar()->addMenu(tr("&Help")); QMenu* HelpMenu = menuBar()->addMenu(tr("&Help"));
HelpMenu->addAction(mActions[LC_HELP_HOMEPAGE]); HelpMenu->addAction(mActions[LC_HELP_HOMEPAGE]);
HelpMenu->addAction(mActions[LC_HELP_EMAIL]); HelpMenu->addAction(mActions[LC_HELP_BUG_REPORT]);
#if !LC_DISABLE_UPDATE_CHECK #if !LC_DISABLE_UPDATE_CHECK
HelpMenu->addAction(mActions[LC_HELP_UPDATES]); HelpMenu->addAction(mActions[LC_HELP_UPDATES]);
#endif #endif
#ifndef Q_OS_MACOS
HelpMenu->addSeparator(); HelpMenu->addSeparator();
#endif
HelpMenu->addAction(mActions[LC_HELP_ABOUT]); HelpMenu->addAction(mActions[LC_HELP_ABOUT]);
} }
@ -2842,8 +2843,8 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
QDesktopServices::openUrl(QUrl("http://www.leocad.org/")); QDesktopServices::openUrl(QUrl("http://www.leocad.org/"));
break; break;
case LC_HELP_EMAIL: case LC_HELP_BUG_REPORT:
QDesktopServices::openUrl(QUrl("mailto:leozide@gmail.com?subject=LeoCAD")); QDesktopServices::openUrl(QUrl("https://github.com/leozide/leocad/issues"));
break; break;
case LC_HELP_UPDATES: case LC_HELP_UPDATES:

View file

@ -74,7 +74,6 @@
<file>resources/time_previous.png</file> <file>resources/time_previous.png</file>
<file>resources/time_stop.png</file> <file>resources/time_stop.png</file>
<file>resources/leocad.png</file> <file>resources/leocad.png</file>
<file>resources/help_email.png</file>
<file>resources/help_homepage.png</file> <file>resources/help_homepage.png</file>
<file>resources/view_zoomextents.png</file> <file>resources/view_zoomextents.png</file>
<file>resources/view_split_horizontal.png</file> <file>resources/view_split_horizontal.png</file>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B