mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 8fc7f0cba9 into merged_master (Bitcoin PR #16578)
This commit is contained in:
commit
a7c43a8eb0
3 changed files with 8 additions and 5 deletions
|
|
@ -169,8 +169,11 @@ void BitcoinCore::shutdown()
|
|||
}
|
||||
}
|
||||
|
||||
BitcoinApplication::BitcoinApplication(interfaces::Node& node, int &argc, char **argv):
|
||||
QApplication(argc, argv),
|
||||
static int qt_argc = 1;
|
||||
static const char* qt_argv = "bitcoin-qt";
|
||||
|
||||
BitcoinApplication::BitcoinApplication(interfaces::Node& node):
|
||||
QApplication(qt_argc, const_cast<char **>(&qt_argv)),
|
||||
coreThread(nullptr),
|
||||
m_node(node),
|
||||
optionsModel(nullptr),
|
||||
|
|
@ -434,7 +437,7 @@ int GuiMain(int argc, char* argv[])
|
|||
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
|
||||
#endif
|
||||
|
||||
BitcoinApplication app(*node, argc, argv);
|
||||
BitcoinApplication app(*node);
|
||||
|
||||
// Register meta types used for QMetaObject::invokeMethod
|
||||
qRegisterMetaType< bool* >();
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class BitcoinApplication: public QApplication
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit BitcoinApplication(interfaces::Node& node, int &argc, char **argv);
|
||||
explicit BitcoinApplication(interfaces::Node& node);
|
||||
~BitcoinApplication();
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
// Don't remove this, it's needed to access
|
||||
// QApplication:: and QCoreApplication:: in the tests
|
||||
BitcoinApplication app(*node, argc, argv);
|
||||
BitcoinApplication app(*node);
|
||||
app.setApplicationName("Elements-Qt-test");
|
||||
|
||||
AppTests app_tests(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue