mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Websites: Set "As link" option turned on by default
This commit is contained in:
parent
b7a707d7c0
commit
b72d377d78
|
@ -568,6 +568,8 @@ void WebSitesModel::addNewSite()
|
||||||
|
|
||||||
w.url = "http://";
|
w.url = "http://";
|
||||||
|
|
||||||
|
w.inside_iframe = true;
|
||||||
|
|
||||||
beginInsertRows( QModelIndex(), webSites.size(), webSites.size() );
|
beginInsertRows( QModelIndex(), webSites.size(), webSites.size() );
|
||||||
webSites.push_back( w );
|
webSites.push_back( w );
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
|
@ -249,6 +249,8 @@ void WebSiteArticleRequest::requestFinished( QNetworkReply * r )
|
||||||
articleBody.prepend( divStr.toUtf8() );
|
articleBody.prepend( divStr.toUtf8() );
|
||||||
articleBody.append( "</div>" );
|
articleBody.append( "</div>" );
|
||||||
|
|
||||||
|
articleBody.prepend( "<div class=\"website_padding\"></div>" );
|
||||||
|
|
||||||
Mutex::Lock _( dataMutex );
|
Mutex::Lock _( dataMutex );
|
||||||
|
|
||||||
size_t prevSize = data.size();
|
size_t prevSize = data.size();
|
||||||
|
|
Loading…
Reference in a new issue