ui->menuRecently_open->addAction(m_clearRecentlyOpenAction);
}
-bool MainWindow::verifyPassword() {
+bool MainWindow::verifyPassword(bool sensitive) {
bool incorrectPassword = false;
while (true) {
- PasswordDialog passwordDialog{this->walletName(), incorrectPassword, true, this};
+ PasswordDialog passwordDialog{this->walletName(), incorrectPassword, sensitive, this};
int ret = passwordDialog.exec();
if (ret == QDialog::Rejected) {
return false;
if ((m_userLastActive + (config()->get(Config::inactivityLockTimeout).toInt()*60)) < QDateTime::currentSecsSinceEpoch()) {
m_checkUserActivity.stop();
qInfo() << "Locking wallet for inactivity";
- if (!this->verifyPassword()) {
+ ui->tabWidget->hide();
+ this->statusBar()->hide();
+ this->menuBar()->hide();
+ if (!this->verifyPassword(false)) {
this->setEnabled(false);
this->close();
// This doesn't close the wallet immediately.
} while (QApplication::hasPendingEvents());
#endif
} else {
+ ui->tabWidget->show();
+ this->statusBar()->show();
+ this->menuBar()->show();
m_checkUserActivity.start();
}
}
void addToRecentlyOpened(const QString &filename);
void updateRecentlyOpenedMenu();
void updateWidgetIcons();
- bool verifyPassword();
+ bool verifyPassword(bool senstive = true);
void patchStylesheetMac();
void fillSendTab(const QString &address, const QString &description);
void userActivity();