OpenToonz - An open-source full-featured 2D animation creation software
C
Change and create message box for Report a Bug...
manongjohne3f4cf8d9b8f
diff --git a/stuff/profiles/layouts/rooms/Default/menubar_template.xml b/stuff/profiles/layouts/rooms/Default/menubar_template.xmlindex b8f53ac21..b1f6dce70 100644--- a/stuff/profiles/layouts/rooms/Default/menubar_template.xml+++ b/stuff/profiles/layouts/rooms/Default/menubar_template.xml@@ -323,7 +323,7 @@<command>MI_OpenWhatsNew</command><command>MI_OpenCommunityForum</command><separator/>- <command>MI_OpenReportAnIssue</command>+ <command>MI_OpenReportABug</command><separator/><command>MI_About</command></menu>diff --git a/stuff/profiles/layouts/shortcuts/defopentoonz.ini b/stuff/profiles/layouts/shortcuts/defopentoonz.iniindex 9f6522c59..0ee3c113d 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.iniindex 3020eb126..5d59876d9 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.iniindex c2ef50587..5d0f2ba85 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.iniindex 151a9a912..6d03720c3 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.cppindex 931411130..dae716e34 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);@@ -1017,9 +1017,18 @@ void MainWindow::onOpenCommunityForum() {//------------------------------------------------------------------------------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<QString> 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.hindex a288bc38f..26fdd3e7b 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.cppindex 7be2a2fed..d4c141b28 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.hindex f8dd74eb0..2b219d6f0 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"