From 73c94eaeb5d36a346aad9eb3ceb1a27c4e436d69 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 12 Jan 2020 10:46:19 -0500 Subject: [PATCH] Report a bug --- src/mainwindow.cpp | 7 +++++++ src/mainwindow.h | 1 + src/mainwindow.ui | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 93c8c7d..9cd7e34 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -56,6 +56,8 @@ MainWindow::MainWindow(QWidget *parent) : QObject::connect(ui->actionDiscord, &QAction::triggered, this, &MainWindow::discord); + QObject::connect(ui->actionReportBug, &QAction::triggered, this, &MainWindow::reportbug); + QObject::connect(ui->actionWebsite, &QAction::triggered, this, &MainWindow::website); // Set up check for updates action @@ -491,6 +493,11 @@ void MainWindow::discord() { QDesktopServices::openUrl(QUrl(url)); } +void MainWindow::reportbug() { + QString url = "https://github.com/MyHush/SilentDragon/issues/new"; + QDesktopServices::openUrl(QUrl(url)); +} + void MainWindow::website() { QString url = "https://myhush.org"; QDesktopServices::openUrl(QUrl(url)); diff --git a/src/mainwindow.h b/src/mainwindow.h index c4aafd8..9640d76 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -118,6 +118,7 @@ private: void donate(); void website(); void discord(); + void reportbug(); void addressBook(); void postToZBoard(); void importPrivKey(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index c2685c3..54459ab 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1511,6 +1511,7 @@ + @@ -1544,6 +1545,11 @@ &About + + + &Report a bug on Github + + &Settings