From 9db0e0b6ff242f60b8be36a344faa0dcaf08abe0 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Fri, 12 Jul 2019 14:22:09 -0700 Subject: [PATCH] #165 - Add "file a bug" menu item --- src/mainwindow.cpp | 5 +++++ src/mainwindow.ui | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4473048..57d78a6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -40,6 +40,11 @@ MainWindow::MainWindow(QWidget *parent) : // Set up donate action QObject::connect(ui->actionDonate, &QAction::triggered, this, &MainWindow::donate); + // File a bug + QObject::connect(ui->actionFile_a_bug, &QAction::triggered, [=]() { + QDesktopServices::openUrl(QUrl("https://github.com/zcashfoundation/zecwallet/issues/new")); + }); + // Set up check for updates action QObject::connect(ui->actionCheck_for_Updates, &QAction::triggered, [=] () { // Silent is false, so show notification even if no update was found diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 9083964..fc39870 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -359,8 +359,8 @@ 0 0 - 928 - 353 + 920 + 324 @@ -1045,7 +1045,7 @@ 0 0 968 - 19 + 21 @@ -1069,6 +1069,7 @@ + @@ -1189,6 +1190,11 @@ Request zcash... + + + File a bug... + +