Skip to content

Commit c9fcf56

Browse files
committed
Report issue link
1 parent 81590e2 commit c9fcf56

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Interface/Application/SCIRunMainWindow.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ SCIRunMainWindow::SCIRunMainWindow() : shortcuts_(nullptr), returnCode_(0), quit
300300
connect(actionSelectModule_, SIGNAL(triggered()), this, SLOT(selectModuleKeyboardAction()));
301301
actionSelectModule_->setVisible(false);
302302

303+
connect(actionReportIssue_, SIGNAL(triggered()), this, SLOT(reportIssue()));
304+
303305
connect(actionSelectMode_, SIGNAL(toggled(bool)), this, SLOT(setSelectMode(bool)));
304306
connect(actionDragMode_, SIGNAL(toggled(bool)), this, SLOT(setDragMode(bool)));
305307

@@ -1518,6 +1520,15 @@ void SCIRunMainWindow::addToPathFromGUI()
15181520
addToDataDirectory(dir);
15191521
}
15201522

1523+
void SCIRunMainWindow::reportIssue()
1524+
{
1525+
if (QMessageBox::Ok == QMessageBox::information(this, "Report Issue",
1526+
"Click OK to be taken to SCIRun's Github issue reporting page.\n\nFor bug reports, please follow the template.", QMessageBox::Ok|QMessageBox::Cancel))
1527+
{
1528+
QDesktopServices::openUrl(QUrl("https://github.com/SCIInstitute/SCIRun/issues/new", QUrl::TolerantMode));
1529+
}
1530+
}
1531+
15211532
bool SCIRunMainWindow::newInterface() const
15221533
{
15231534
return Application::Instance().parameters()->entireCommandLine().find("--originalGUI") == std::string::npos;

src/Interface/Application/SCIRunMainWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ private Q_SLOTS:
231231
void toggleTagLayer(bool toggle);
232232
void toggleMetadataLayer(bool toggle);
233233
void adjustModuleDock(int state);
234+
void reportIssue();
234235
void exitApplication(int code);
235236
};
236237

0 commit comments

Comments
 (0)