mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
gui/src/MainWindow.cpp: Make sure to call libeosio::ec_init() and ec_shutdown()
This commit is contained in:
parent
0781b7db80
commit
e0a7d8fb21
2 changed files with 8 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
QMainWindow (parent),
|
||||
m_fio_action (nullptr)
|
||||
{
|
||||
libeosio::ec_init();
|
||||
|
||||
// Create sub windows and stacked widget.
|
||||
m_stacked = new QStackedWidget();
|
||||
m_stacked->addWidget(new GenerateWindow());
|
||||
|
|
@ -60,6 +62,11 @@ m_fio_action (nullptr)
|
|||
menuBar()->addAction("About", this, SLOT(showAbout()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
libeosio::ec_shutdown();
|
||||
}
|
||||
|
||||
void MainWindow::switchToGenerate()
|
||||
{
|
||||
m_stacked->setCurrentIndex(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue