| 894 | } |
| 895 | |
| 896 | void WizDocumentView::onCipherCheckRequest() |
| 897 | { |
| 898 | const WIZDOCUMENTDATA& noteData = note(); |
| 899 | WizDatabase& db = m_dbMgr.db(noteData.strKbGUID); |
| 900 | // |
| 901 | QString password = m_passwordView->userCipher(); |
| 902 | if (!db.verifyCertPassword(password)) |
| 903 | { |
| 904 | m_passwordView->cipherError(); |
| 905 | WizMessageBox::information(qApp->activeWindow(), tr("WizNote"), tr("Invalid password.")); |
| 906 | |
| 907 | return; |
| 908 | } |
| 909 | // |
| 910 | m_passwordView->cipherCorrect(); |
| 911 | |
| 912 | m_stack->setCurrentWidget(m_docView); |
| 913 | loadNote(noteData); |
| 914 | } |
| 915 | |
| 916 | void WizDocumentView::on_download_finished(const WIZOBJECTDATA &data, bool bSucceed) |
| 917 | { |
nothing calls this directly
no test coverage detected