|
|
@ -108,11 +108,10 @@ MainWindow::MainWindow(QWidget *parent) : |
|
|
|
// Set up exit action
|
|
|
|
QObject::connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close); |
|
|
|
|
|
|
|
// Set up Feedback action
|
|
|
|
//QObject::connect(ui->actionDonate, &QAction::triggered, this, &MainWindow::donate);
|
|
|
|
|
|
|
|
// Telegram
|
|
|
|
QObject::connect(ui->actionTelegram, &QAction::triggered, this, &MainWindow::telegram); |
|
|
|
|
|
|
|
// Website
|
|
|
|
QObject::connect(ui->actionWebsite, &QAction::triggered, this, &MainWindow::website); |
|
|
|
|
|
|
|
// File a bug
|
|
|
@ -919,18 +918,6 @@ void MainWindow::website() { |
|
|
|
QDesktopServices::openUrl(QUrl(url)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::donate() { |
|
|
|
ui->Address1->setText(Settings::getDonationAddr()); |
|
|
|
ui->Address1->setCursorPosition(0); |
|
|
|
ui->Amount1->setText("0.00"); |
|
|
|
ui->MemoTxt1->setText(tr("Some feedback about SilentDragonlite or Hush...")); |
|
|
|
ui->statusBar->showMessage(tr("Send some private and shielded feedback about") % Settings::getTokenName() % tr(" or SilentDragonLite")); |
|
|
|
|
|
|
|
// And switch to the send tab.
|
|
|
|
ui->tabWidget->setCurrentIndex(1); |
|
|
|
} |
|
|
|
|
|
|
|
void MainWindow::doImport(QList<QString>* keys) { |
|
|
|
if (rpc->getConnection() == nullptr) { |
|
|
|
// No connection, just return
|
|
|
|