void TitleBar::onCommentPageLoaded(bool ok) { #ifdef USEWEBENGINE QWebEngineView* comments = noteView()->commentView(); #else CWizLocalProgressWebView* commentWidget = noteView()->commentWidget(); #endif if (!ok) { loadErrorPage(); commentWidget->show(); } else { commentWidget->hideLocalProgress(); } #ifdef USEWEBENGINE else {
void TitleBar::onCommentPageLoaded(bool ok) { #ifdef USEWEBENGINE QWebEngineView* comments = noteView()->commentView(); #else CWizLocalProgressWebView* commentWidget = noteView()->commentWidget(); commentWidget->web()->history()->clear(); #endif if (!ok) { qDebug() << "Wow, load comment page failed! " << commentWidget->web()->url(); loadErrorPage(); commentWidget->show(); } else { commentWidget->hideLocalProgress(); } #ifdef USEWEBENGINE else {