diff options
-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); |