1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Merge branch 'v2.1'

This commit is contained in:
David Rosca 2017-02-07 15:08:25 +01:00
commit 3dd36b37ef
4 changed files with 19 additions and 23 deletions

View File

@ -178,12 +178,12 @@ function boxEdited() {
if (editingId == -1)
return;
external.speedDial.urlFromUserInput($('#formUrl').attr("value"), function(newUrl) {
external.speedDial.urlFromUserInput($('#formUrl').val(), function(newUrl) {
var box = document.getElementById('quickdial').getElementsByTagName('div')[editingId];
var a = box.getElementsByTagName('a')[0];
var originalUrl = a.getAttribute('href');
setBoxUrl(editingId, newUrl);
setBoxTitle(editingId, $('#formTitle').attr("value"));
setBoxTitle(editingId, $('#formTitle').val());
var changedUrl = a.getAttribute('href');
var fetchTitleChecked = document.getElementById('fetchTitle').checked;

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -264,10 +264,6 @@ void SpeedDial::changed(const QString &allPages)
void SpeedDial::loadThumbnail(const QString &url, bool loadTitle)
{
if (url.isEmpty()) {
return;
}
PageThumbnailer* thumbnailer = new PageThumbnailer(this);
thumbnailer->setUrl(QUrl::fromEncoded(url.toUtf8()));
thumbnailer->setLoadTitle(loadTitle);
@ -342,7 +338,7 @@ void SpeedDial::thumbnailCreated(const QPixmap &pixmap)
QString fileName = m_thumbnailsDir + QCryptographicHash::hash(url.toUtf8(), QCryptographicHash::Md4).toHex() + ".png";
if (pixmap.isNull()) {
fileName = "qrc:/html/broken-page.png";
fileName = ":/html/broken-page.png";
title = tr("Unable to load");
}
else {

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -17,6 +17,7 @@
* ============================================================ */
#include "pagethumbnailer.h"
#include "scripts.h"
#include "webview.h"
#include <QTimer>
#include <QApplication>
@ -77,11 +78,10 @@ QString PageThumbnailer::title()
void PageThumbnailer::start()
{
if (m_view->rootObject()) {
if (m_view->rootObject() && WebView::isUrlValid(m_url)) {
m_view->rootObject()->setProperty("url", m_url);
}
else {
QTimer::singleShot(0, this, [this]() {
} else {
QTimer::singleShot(500, this, [this]() {
emit thumbnailCreated(QPixmap());
});
}

View File

@ -166,12 +166,11 @@ notRunning:
SetOutPath "$INSTDIR\translations\qtwebengine_locales"
File "translations\qtwebengine_locales\*"
SetOutPath "$INSTDIR\hunspell\doc"
File "wininstall\hunspell\doc\*"
SetOutPath "$INSTDIR\qtwebengine_dictionaries\doc"
File "qtwebengine_dictionaries\doc\README-en-US.txt"
SetOutPath "$INSTDIR\hunspell"
File "wininstall\hunspell\en_US.aff"
File "wininstall\hunspell\en_US.dic"
SetOutPath "$INSTDIR\qtwebengine_dictionaries"
File "qtwebengine_dictionaries\en_US.bdic"
call RegisterCapabilities
SectionEnd
@ -219,9 +218,10 @@ SectionGroupEnd
Section $(TITLE_SecTranslations) SecTranslations
SetOutPath "$INSTDIR\locale"
File "locale\*.qm"
SetOutPath "$INSTDIR\hunspell"
File "wininstall\hunspell\*.aff"
File "wininstall\hunspell\*.dic"
SetOutPath "$INSTDIR\qtwebengine_dictionaries\doc"
File "qtwebengine_dictionaries\doc\*"
SetOutPath "$INSTDIR\qtwebengine_dictionaries"
File "qtwebengine_dictionaries\*.bdic"
SectionEnd
Section $(TITLE_SecPlugins) SecPlugins