diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index 158ac38fe..a5943d84d 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -240,7 +240,7 @@ void MainApplication::loadSettings() bool xssAuditing = settings.value("XSSAuditing", false).toBool(); int maxCachedPages = settings.value("maximumCachedPages", 3).toInt(); int scrollingLines = settings.value("wheelScrollLines", wheelScrollLines()).toInt(); - QUrl userStyleSheet = settings.value("userStyleSheet", QUrl()).toUrl(); + QUrl userStyleSheet = QUrl::fromLocalFile(settings.value("userStyleSheet", "").toString()); m_defaultZoom = settings.value("DefaultZoom", 100).toInt(); settings.endGroup(); diff --git a/src/network/qupzillaschemehandler.cpp b/src/network/qupzillaschemehandler.cpp index 93f549004..5ee8bde84 100644 --- a/src/network/qupzillaschemehandler.cpp +++ b/src/network/qupzillaschemehandler.cpp @@ -117,7 +117,7 @@ QString QupZillaSchemeReply::reportbugPage() { QString page; page.append(qz_readAllFileContents(":html/reportbug.html")); - page.replace("%FAVICON%", "qrc:html/qupzilla.ico"); + page.replace("%FAVICON%", "qrc:icons/qupzilla.png"); page.replace("%BOX-BORDER%", "qrc:html/box-border.png"); page.replace("%TITLE%", tr("Report Issue")); @@ -137,7 +137,7 @@ QString QupZillaSchemeReply::startPage() { QString page; page.append(qz_readAllFileContents(":html/start.html")); - page.replace("%FAVICON%", "qrc:html/qupzilla.ico"); + page.replace("%FAVICON%", "qrc:icons/qupzilla.png"); page.replace("%BOX-BORDER%", "qrc:html/box-border.png"); page.replace("%ABOUT-IMG%", "qrc:icons/other/about.png"); @@ -154,7 +154,7 @@ QString QupZillaSchemeReply::aboutPage() { QString page; page.append(qz_readAllFileContents(":html/about.html")); - page.replace("%FAVICON%", "qrc:html/qupzilla.ico"); + page.replace("%FAVICON%", "qrc:icons/qupzilla.png"); page.replace("%BOX-BORDER%", "qrc:html/box-border.png"); page.replace("%ABOUT-IMG%", "qrc:icons/other/about.png"); page.replace("%COPYRIGHT-INCLUDE%", qz_readAllFileContents(":html/copyright")); @@ -206,7 +206,7 @@ QString QupZillaSchemeReply::speeddialPage() { QString page; page.append(qz_readAllFileContents(":html/speeddial.html")); - page.replace("%FAVICON%", "qrc:html/qupzilla.ico"); + page.replace("%FAVICON%", "qrc:icons/qupzilla.png"); page.replace("%IMG_PLUS%", "qrc:html/plus.png"); page.replace("%BOX-BORDER%", "qrc:html/box-border-small.png"); page.replace("%IMG_CLOSE%", "qrc:html/close.png"); diff --git a/src/webview/webinspectordockwidget.cpp b/src/webview/webinspectordockwidget.cpp index 610865f24..32dea39cc 100644 --- a/src/webview/webinspectordockwidget.cpp +++ b/src/webview/webinspectordockwidget.cpp @@ -37,7 +37,7 @@ WebInspectorDockWidget::WebInspectorDockWidget(QupZilla* mainClass) void WebInspectorDockWidget::close() { - m_inspector->deleteLater(); + delete m_inspector; p_QupZilla->weView()->webTab()->setInspectorVisible(false); hide();