mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-01 04:24:05 +01:00
Clean up WalletKeysFilesModel
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <QWidget>
|
||||
|
||||
#include "appcontext.h"
|
||||
#include "utils/keysfiles.h"
|
||||
#include "model/WalletKeysFilesModel.h"
|
||||
|
||||
namespace Ui {
|
||||
class PageOpenWallet;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user