Clean up WalletKeysFilesModel

This commit is contained in:
tobtoht
2021-05-20 21:44:40 +02:00
parent b0834f8729
commit 3d646fb345
6 changed files with 81 additions and 78 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ bool PageOpenWallet::validatePage() {
QMessageBox::warning(this, "Wallet not selected", "Please select a wallet from the list.");
return false;
}
QString walletPath = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::ModelColumns::Path), Qt::UserRole).toString();
QString walletPath = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::Column::Path), Qt::UserRole).toString();
auto autoWallet = ui->openOnStartup->isChecked() ? QString("%1%2").arg(constants::networkType).arg(walletPath) : "";
config()->set(Config::autoOpenWalletPath, autoWallet);
+1 -1
View File
@@ -9,7 +9,7 @@
#include <QWidget>
#include "appcontext.h"
#include "utils/keysfiles.h"
#include "model/WalletKeysFilesModel.h"
namespace Ui {
class PageOpenWallet;
-4
View File
@@ -79,10 +79,6 @@ WalletWizard::WalletWizard(QWidget *parent)
});
}
WalletWizard::~WalletWizard() {
qDebug() << "We're killing the walletwizard";
}
void WalletWizard::onCreateWallet() {
auto walletPath = QString("%1/%2").arg(m_wizardFields.walletDir, m_wizardFields.walletName);
+1 -2
View File
@@ -9,7 +9,7 @@
#include <QRadioButton>
#include "appcontext.h"
#include "utils/keysfiles.h"
#include "model/WalletKeysFilesModel.h"
#include "utils/RestoreHeightLookup.h"
#include "utils/config.h"
@@ -56,7 +56,6 @@ public:
};
explicit WalletWizard(QWidget *parent = nullptr);
~WalletWizard() override;
signals:
void initialNetworkConfigured();