From 4950d659f308e2ec8a1229d839fe22ecd0728052 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 4 Mar 2022 13:42:14 +0100 Subject: [PATCH] Require password to open cache viewer --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d9c33f40..ef7b9c5d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1001,6 +1001,10 @@ void MainWindow::showDebugInfo() { } void MainWindow::showWalletCacheDebugDialog() { + if (!this->verifyPassword()) { + return; + } + WalletCacheDebugDialog dialog{m_ctx, this}; dialog.exec(); } -- 2.52.0