diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-09-04 22:19:40 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-09-04 22:19:40 +0200 |
commit | 362ebca19e80d51673b2f4ccdf498a1a0ff24156 (patch) | |
tree | 6147883f008ca706e77c760236071505c7779c89 | |
parent | Bump build requirements to kdelibs 4.8.3 (diff) | |
download | rekonq-362ebca19e80d51673b2f4ccdf498a1a0ff24156.tar.xz |
Stupid me, forgot to enable WebKit features on kwebapp...
BUG: 306185
-rw-r--r-- | kwebapp/kwebmain.cpp | 4 | ||||
-rw-r--r-- | src/urlbar/bookmarkwidget.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/kwebapp/kwebmain.cpp b/kwebapp/kwebmain.cpp index 815c4dc9..8c324fa9 100644 --- a/kwebapp/kwebmain.cpp +++ b/kwebapp/kwebmain.cpp @@ -61,6 +61,10 @@ int main(int argc, char **argv) QWebSettings::setIconDatabasePath(KStandardDirs::locateLocal("cache", "kwebapp.favicons/")); + QWebSettings::globalSettings()->setAttribute(QWebSettings::DnsPrefetchEnabled, true); + QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true); + QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true); + KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args->count() != 1) { diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp index e3585f84..c1963ff0 100644 --- a/src/urlbar/bookmarkwidget.cpp +++ b/src/urlbar/bookmarkwidget.cpp @@ -287,7 +287,7 @@ void BookmarkWidget::onFolderIndexChanged(int index) KBookmarkDialog dialog(rApp->bookmarkManager()->manager()); KBookmarkGroup selectedGroup = dialog.selectFolder(m_bookmark.parentGroup()); - if (selectedGroup.address() != m_bookmark.parentGroup().address() && !selectedGroup.isNull() ) + if (selectedGroup.address() != m_bookmark.parentGroup().address() && !selectedGroup.isNull()) { m_bookmark.parentGroup().deleteBookmark(m_bookmark); selectedGroup.addBookmark(m_bookmark); |