mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	Merge pull request 'BugFix: show message box if no wallet is selected' (#118) from mrdeveloper/feather:bug-wallet-select into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/118 Reviewed-by: dsc <dsc@noreply.gitgud.wownero.nl>
This commit is contained in:
		
						commit
						34a63897d6
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -66,6 +66,10 @@ int OpenWalletPage::nextId() const {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool OpenWalletPage::validatePage() {
 | 
					bool OpenWalletPage::validatePage() {
 | 
				
			||||||
    QModelIndex index = ui->walletTable->currentIndex();
 | 
					    QModelIndex index = ui->walletTable->currentIndex();
 | 
				
			||||||
 | 
					    if(!index.isValid()) {
 | 
				
			||||||
 | 
					        Utils::showMessageBox("Wallet not selected", "Please select a wallet from the list.", true);
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    QString walletPath = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::ModelColumns::Path), Qt::UserRole).toString();
 | 
					    QString walletPath = index.model()->data(index.siblingAtColumn(WalletKeysFilesModel::ModelColumns::Path), Qt::UserRole).toString();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    auto autoWallet = ui->openOnStartup->isChecked() ? QString("%1%2").arg(m_ctx->networkType).arg(walletPath) : "";
 | 
					    auto autoWallet = ui->openOnStartup->isChecked() ? QString("%1%2").arg(m_ctx->networkType).arg(walletPath) : "";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue