aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-07-14 01:45:34 +0000
committerxiphon <xiphon@protonmail.com>2020-07-14 23:44:46 +0000
commit13ee9b1f26831b208b33bb977d0fdda61bfec452 (patch)
tree111b476735dce1cdc9fb45ec30b8c7a7d286224a /src/main
parentc137a6ea36040aee20366933935805eff67ae3f8 (diff)
downloadmonzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.tar.gz
monzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.tar.xz
monzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.zip
KeysFiles: fix WalletKeysFilesModel, should be instantiable QML type
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 41b41faa..b17c0e19 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -354,6 +354,7 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
// registering types for QML
qmlRegisterType<clipboardAdapter>("moneroComponents.Clipboard", 1, 0, "Clipboard");
qmlRegisterType<Downloader>("moneroComponents.Downloader", 1, 0, "Downloader");
+ qmlRegisterType<WalletKeysFilesModel>("moneroComponents.WalletKeysFilesModel", 1, 0, "WalletKeysFilesModel");
// Temporary Qt.labs.settings replacement
qmlRegisterType<MoneroSettings>("moneroComponents.Settings", 1, 0, "MoneroSettings");
@@ -373,9 +374,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
qmlRegisterUncreatableType<TranslationManager>("moneroComponents.TranslationManager", 1, 0, "TranslationManager",
"TranslationManager can't be instantiated directly");
- qmlRegisterUncreatableType<WalletKeysFilesModel>("moneroComponents.walletKeysFilesModel", 1, 0, "WalletKeysFilesModel",
- "walletKeysFilesModel can't be instantiated directly");
-
qmlRegisterUncreatableType<TransactionHistoryModel>("moneroComponents.TransactionHistoryModel", 1, 0, "TransactionHistoryModel",
"TransactionHistoryModel can't be instantiated directly");
@@ -475,11 +473,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
engine.rootContext()->setContextProperty("desktopFolder", desktopFolder);
#endif
- // Wallet .keys files model (wizard -> open wallet)
- WalletKeysFilesModel walletKeysFilesModel;
- engine.rootContext()->setContextProperty("walletKeysFilesModel", &walletKeysFilesModel);
- engine.rootContext()->setContextProperty("walletKeysFilesModelProxy", &walletKeysFilesModel.proxyModel());
-
// Get default account name
QString accountName = qgetenv("USER"); // mac/linux
if (accountName.isEmpty())