Add DEBUG macro for less typing
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
#include "sdl.h"
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
@@ -158,11 +159,11 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
|
|
||||||
// Rescan
|
// Rescan
|
||||||
QObject::connect(ui->actionRescan, &QAction::triggered, [=]() {
|
QObject::connect(ui->actionRescan, &QAction::triggered, [=]() {
|
||||||
|
DEBUG("rescan action triggered");
|
||||||
Ui_Restore restoreSeed;
|
Ui_Restore restoreSeed;
|
||||||
QDialog dialog(this);
|
QDialog dialog(this);
|
||||||
restoreSeed.setupUi(&dialog);
|
restoreSeed.setupUi(&dialog);
|
||||||
Settings::saveRestore(&dialog);
|
Settings::saveRestore(&dialog);
|
||||||
|
|
||||||
rpc->fetchSeed([=](json reply) {
|
rpc->fetchSeed([=](json reply) {
|
||||||
if (isJsonError(reply)) {
|
if (isJsonError(reply)) {
|
||||||
@@ -260,15 +261,14 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
// Then reload the connection. The ConnectionLoader deletes itself.
|
// Then reload the connection. The ConnectionLoader deletes itself.
|
||||||
auto cl = new ConnectionLoader(this, rpc);
|
auto cl = new ConnectionLoader(this, rpc);
|
||||||
cl->loadConnection();
|
cl->loadConnection();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
});
|
}); // actionReason
|
||||||
|
|
||||||
// Import Privkey
|
// Import Privkey
|
||||||
QObject::connect(ui->actionImport_Privatkey, &QAction::triggered, this, &MainWindow::importPrivKey);
|
QObject::connect(ui->actionImport_Privatkey, &QAction::triggered, this, &MainWindow::importPrivKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user