Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | void RPCExecutor::request(const QString &command, const QString &walletID) { | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
Q_EMIT reply(RPCConsole::CMD_ERROR, | Q_EMIT reply(RPCConsole::CMD_ERROR, | ||||
QString("Error: ") + QString::fromStdString(e.what())); | QString("Error: ") + QString::fromStdString(e.what())); | ||||
} | } | ||||
} | } | ||||
RPCConsole::RPCConsole(interfaces::Node &node, | RPCConsole::RPCConsole(interfaces::Node &node, | ||||
const PlatformStyle *_platformStyle, QWidget *parent) | const PlatformStyle *_platformStyle, QWidget *parent) | ||||
: QWidget(parent), m_node(node), ui(new Ui::RPCConsole), clientModel(0), | : QWidget(parent), m_node(node), ui(new Ui::RPCConsole), | ||||
historyPtr(0), platformStyle(_platformStyle), peersTableContextMenu(0), | platformStyle(_platformStyle) { | ||||
banTableContextMenu(0), consoleFontSize(0) { | |||||
ui->setupUi(this); | ui->setupUi(this); | ||||
QSettings settings; | QSettings settings; | ||||
if (!restoreGeometry( | if (!restoreGeometry( | ||||
settings.value("RPCConsoleWindowGeometry").toByteArray())) { | settings.value("RPCConsoleWindowGeometry").toByteArray())) { | ||||
// Restore failed (perhaps missing setting), center the window | // Restore failed (perhaps missing setting), center the window | ||||
move(QApplication::desktop()->availableGeometry().center() - | move(QApplication::desktop()->availableGeometry().center() - | ||||
frameGeometry().center()); | frameGeometry().center()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 914 Lines • Show Last 20 Lines |