From 558ed2d7acae092a8443c9aed1d33ef030b04e43 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 24 Feb 2022 00:44:13 +0100 Subject: [PATCH] Don't set default donation amount --- src/MainWindow.cpp | 6 +----- src/constants.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index f351812..ce48323 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -910,11 +910,7 @@ void MainWindow::closeEvent(QCloseEvent *event) { } void MainWindow::donateButtonClicked() { - double donation = appData()->prices.convert("EUR", "XMR", constants::donationAmount); - if (donation <= 0) - donation = 0.1337; - - m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team", donation); + m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team"); ui->tabWidget->setCurrentIndex(Tabs::SEND); } diff --git a/src/constants.h b/src/constants.h index 9b2794b..140166d 100644 --- a/src/constants.h +++ b/src/constants.h @@ -23,7 +23,6 @@ namespace constants // donation constants const QString donationAddress = "47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f"; - const int donationAmount = 25; // euro const int donationBoundary = 25; // websocket constants