diff --git a/stuff/profiles/layouts/rooms/Default/menubar_template.xml b/stuff/profiles/layouts/rooms/Default/menubar_template.xml index b8f53ac..b1f6dce 100644 --- a/stuff/profiles/layouts/rooms/Default/menubar_template.xml +++ b/stuff/profiles/layouts/rooms/Default/menubar_template.xml @@ -323,7 +323,7 @@ MI_OpenWhatsNew MI_OpenCommunityForum - MI_OpenReportAnIssue + MI_OpenReportABug MI_About diff --git a/stuff/profiles/layouts/shortcuts/defopentoonz.ini b/stuff/profiles/layouts/shortcuts/defopentoonz.ini index 9f6522c..0ee3c11 100644 --- a/stuff/profiles/layouts/shortcuts/defopentoonz.ini +++ b/stuff/profiles/layouts/shortcuts/defopentoonz.ini @@ -229,7 +229,7 @@ MI_OpenPalette= MI_OpenPltGizmo= MI_OpenRecentLevel= MI_OpenRecentScene= -MI_OpenReportAnIssue= +MI_OpenReportABug= MI_OpenSchematic= MI_OpenScriptConsole= MI_OpenStudioPalette= diff --git a/stuff/profiles/layouts/shortcuts/otadobe.ini b/stuff/profiles/layouts/shortcuts/otadobe.ini index 3020eb1..5d59876 100644 --- a/stuff/profiles/layouts/shortcuts/otadobe.ini +++ b/stuff/profiles/layouts/shortcuts/otadobe.ini @@ -229,7 +229,7 @@ MI_OpenPalette= MI_OpenPltGizmo= MI_OpenRecentLevel= MI_OpenRecentScene= -MI_OpenReportAnIssue= +MI_OpenReportABug= MI_OpenSchematic= MI_OpenScriptConsole= MI_OpenStudioPalette= diff --git a/stuff/profiles/layouts/shortcuts/otharmony.ini b/stuff/profiles/layouts/shortcuts/otharmony.ini index c2ef505..5d0f2ba 100644 --- a/stuff/profiles/layouts/shortcuts/otharmony.ini +++ b/stuff/profiles/layouts/shortcuts/otharmony.ini @@ -229,7 +229,7 @@ MI_OpenPalette= MI_OpenPltGizmo= MI_OpenRecentLevel= MI_OpenRecentScene= -MI_OpenReportAnIssue= +MI_OpenReportABug= MI_OpenSchematic= MI_OpenScriptConsole= MI_OpenStudioPalette= diff --git a/stuff/profiles/layouts/shortcuts/otretas.ini b/stuff/profiles/layouts/shortcuts/otretas.ini index 151a9a9..6d03720 100644 --- a/stuff/profiles/layouts/shortcuts/otretas.ini +++ b/stuff/profiles/layouts/shortcuts/otretas.ini @@ -229,7 +229,7 @@ MI_OpenPalette= MI_OpenPltGizmo= MI_OpenRecentLevel= MI_OpenRecentScene= -MI_OpenReportAnIssue= +MI_OpenReportABug= MI_OpenSchematic= MI_OpenScriptConsole= MI_OpenStudioPalette= diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp index 2ac4133..2510f9c 100644 --- a/toonz/sources/toonz/mainwindow.cpp +++ b/toonz/sources/toonz/mainwindow.cpp @@ -455,7 +455,7 @@ centralWidget->setLayout(centralWidgetLayout);*/ setCommandHandler(MI_OpenWhatsNew, this, &MainWindow::onOpenWhatsNew); setCommandHandler(MI_OpenCommunityForum, this, &MainWindow::onOpenCommunityForum); - setCommandHandler(MI_OpenReportAnIssue, this, &MainWindow::onOpenReportAnIssue); + setCommandHandler(MI_OpenReportABug, this, &MainWindow::onOpenReportABug); setCommandHandler(MI_MaximizePanel, this, &MainWindow::maximizePanel); setCommandHandler(MI_FullScreenWindow, this, &MainWindow::fullScreenWindow); @@ -1005,21 +1005,30 @@ void MainWindow::onOpenOnlineManual() { void MainWindow::onOpenWhatsNew() { QDesktopServices::openUrl( - QUrl("https://github.com/opentoonz/opentoonz/releases/latest")); + QUrl(tr("https://github.com/opentoonz/opentoonz/releases/latest"))); } //----------------------------------------------------------------------------- void MainWindow::onOpenCommunityForum() { QDesktopServices::openUrl( - QUrl("https://groups.google.com/forum/#!forum/opentoonz_en")); + QUrl(tr("https://groups.google.com/forum/#!forum/opentoonz_en"))); } //----------------------------------------------------------------------------- -void MainWindow::onOpenReportAnIssue() { - QDesktopServices::openUrl( - QUrl("https://github.com/opentoonz/opentoonz/issues")); +void MainWindow::onOpenReportABug() { + QString str = QString( + tr("To report a bug, click on the button below to open a web browser " + "window for OpenToonz's Issues page on https://github.com. Click on " + "the 'New issue' button and fill out the form.")); + + std::vector buttons = {QObject::tr("Report a Bug"), + QObject::tr("Close")}; + int ret = DVGui::MsgBox(DVGui::INFORMATION, str, buttons, 1); + if (ret == 1) + QDesktopServices::openUrl( + QUrl("https://github.com/opentoonz/opentoonz/issues")); } //----------------------------------------------------------------------------- @@ -2030,7 +2039,7 @@ void MainWindow::defineActions() { createMenuHelpAction(MI_OpenOnlineManual, tr("&Online Manual..."), "F1"); createMenuHelpAction(MI_OpenWhatsNew, tr("&What's New..."), ""); createMenuHelpAction(MI_OpenCommunityForum, tr("&Community Forum..."), ""); - createMenuHelpAction(MI_OpenReportAnIssue, tr("&Report an Issue..."), ""); + createMenuHelpAction(MI_OpenReportABug, tr("&Report a Bug..."), ""); createRightClickMenuAction(MI_BlendColors, tr("&Blend colors"), ""); diff --git a/toonz/sources/toonz/mainwindow.h b/toonz/sources/toonz/mainwindow.h index a288bc3..26fdd3e 100644 --- a/toonz/sources/toonz/mainwindow.h +++ b/toonz/sources/toonz/mainwindow.h @@ -98,7 +98,7 @@ public: void onOpenOnlineManual(); void onOpenWhatsNew(); void onOpenCommunityForum(); - void onOpenReportAnIssue(); + void onOpenReportABug(); void checkForUpdates(); int getRoomCount() const; Room *getRoom(int index) const; diff --git a/toonz/sources/toonz/menubar.cpp b/toonz/sources/toonz/menubar.cpp index 7be2a2f..d4c141b 100644 --- a/toonz/sources/toonz/menubar.cpp +++ b/toonz/sources/toonz/menubar.cpp @@ -1443,7 +1443,7 @@ QMenuBar *StackedMenuBar::createFullMenuBar() { addMenuItem(helpMenu, MI_OpenWhatsNew); addMenuItem(helpMenu, MI_OpenCommunityForum); helpMenu->addSeparator(); - addMenuItem(helpMenu, MI_OpenReportAnIssue); + addMenuItem(helpMenu, MI_OpenReportABug); helpMenu->addSeparator(); addMenuItem(helpMenu, MI_About); diff --git a/toonz/sources/toonz/menubarcommandids.h b/toonz/sources/toonz/menubarcommandids.h index f8dd74e..2b219d6 100644 --- a/toonz/sources/toonz/menubarcommandids.h +++ b/toonz/sources/toonz/menubarcommandids.h @@ -365,7 +365,7 @@ #define MI_OpenOnlineManual "MI_OpenOnlineManual" #define MI_OpenWhatsNew "MI_OpenWhatsNew" #define MI_OpenCommunityForum "MI_OpenCommunityForum" -#define MI_OpenReportAnIssue "MI_OpenReportAnIssue" +#define MI_OpenReportABug "MI_OpenReportABug" #define MI_ClearCacheFolder "MI_ClearCacheFolder"