MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / onCipherCheckRequest

Method onCipherCheckRequest

src/gui/documentviewer/WizDocumentView.cpp:896–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void 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
916void WizDocumentView::on_download_finished(const WIZOBJECTDATA &data, bool bSucceed)
917{

Callers

nothing calls this directly

Calls 3

verifyCertPasswordMethod · 0.80
cipherErrorMethod · 0.80
cipherCorrectMethod · 0.80

Tested by

no test coverage detected