connect(undoEditAction,SIGNAL(triggered()), this, SLOT(undoEdit()));
on_textEdit_undoAvailable(false);
+ changePasswordAction = ui->menuOptions->addAction(tr("Change password"));
+ connect(changePasswordAction, SIGNAL(triggered()), this, SLOT(on_actionChange_password_triggered()));
+ enableChangePasswordAction(false);
+
/* the secret notes file is stored in user home directory */
filePath = QDir::fromNativeSeparators(QDir::homePath());
plaintext = decoded;
ui->textEdit->setPlainText(plaintext);
enableTextEdit(true);
+ enableChangePasswordAction(true);
}
decoded.fill(0);
}
QString pass = dialog.getPassword();
setPassword(pass);
pass.fill(0);
+ enableChangePasswordAction(true);
return;
}
}
{
resetAction->setVisible(b);
}
+
+void MainWindow::enableChangePasswordAction(bool b)
+{
+ changePasswordAction->setVisible(b);
+}