diff --git a/article-style.css b/article-style.css index aed0452e..34c3add7 100644 --- a/article-style.css +++ b/article-style.css @@ -42,6 +42,7 @@ pre padding: 0.3em; padding-left: 0.5em; background: #def; + user-select: none; } .gddicttitle diff --git a/iframeschemehandler.cpp b/iframeschemehandler.cpp index 1476299b..63d6d081 100644 --- a/iframeschemehandler.cpp +++ b/iframeschemehandler.cpp @@ -20,9 +20,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) auto finishAction = [ = ]() -> void { QByteArray contentType = "text/html;charset=UTF-8"; - auto contentTypeHeader = reply->header( QNetworkRequest::ContentTypeHeader ); - if( contentTypeHeader.isValid() ) - contentType = contentTypeHeader.toByteArray(); QBuffer * buffer = new QBuffer( requestJob ); // Handle reply data