aboutsummaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-03-31 16:29:28 +0000
committerxiphon <xiphon@protonmail.com>2020-03-31 21:37:19 +0000
commit58987b2ec6e026881e88e844dc15e49a19b9a502 (patch)
tree8854557d1bb5e1df9664bc185ccaf1c556d1abed /src/main/main.cpp
parentd07da763833aa2542cfb4737d5f37b7f4733791c (diff)
downloadmonzero-gui-58987b2ec6e026881e88e844dc15e49a19b9a502.tar.gz
monzero-gui-58987b2ec6e026881e88e844dc15e49a19b9a502.tar.xz
monzero-gui-58987b2ec6e026881e88e844dc15e49a19b9a502.zip
network: provide common HTTP GET functionality with js callbacks
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r--src/main/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index c5210e5f..c6c0ea52 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -62,11 +62,11 @@
#include "Logger.h"
#include "MainApp.h"
#include "qt/ipc.h"
+#include "qt/network.h"
#include "qt/utils.h"
#include "qt/TailsOS.h"
#include "qt/KeysFiles.h"
#include "qt/MoneroSettings.h"
-#include "qt/prices.h"
// IOS exclusions
#ifndef Q_OS_IOS
@@ -436,8 +436,8 @@ int main(int argc, char *argv[])
#endif
engine.rootContext()->setContextProperty("builtWithScanner", builtWithScanner);
- Prices prices;
- engine.rootContext()->setContextProperty("Prices", &prices);
+ Network network;
+ engine.rootContext()->setContextProperty("Network", &network);
// Load main window (context properties needs to be defined obove this line)
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));