diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 01:21:01 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 01:21:01 +0200 |
commit | 2714f77437adc3e88cb7bff03739b829f1be6aa8 (patch) | |
tree | 29fe473bbe7554669c56a59b88c7549f011a5053 /src | |
parent | mainview loadurlinCurrentTab improvements (diff) | |
download | rekonq-2714f77437adc3e88cb7bff03739b829f1be6aa8.tar.xz |
Removed WebView loadUrl usage
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp index 0b0f69bf..94a31015 100644 --- a/src/bookmarks.cpp +++ b/src/bookmarks.cpp @@ -82,9 +82,11 @@ void BookmarkOwner::openFolderinTabs(const KBookmarkGroup &bm) { QList<KUrl> urlList = bm.groupUrlList(); QList<KUrl>::iterator url; + Application* app = Application::instance(); for(url = urlList.begin(); url != urlList.end(); ++url) { - Application::instance()->newWebView()->loadUrl(*url); + app->newWebView(); + app->mainWindow()->mainView()->loadUrlInCurrentTab(*url); } } @@ -220,7 +222,8 @@ void BookmarkProvider::slotBookmarksChanged(const QString &group, const QString return; KBookmark bookmark = toolBarGroup.first(); - while (!bookmark.isNull()) { + while (!bookmark.isNull()) + { if (!bookmark.isGroup()) { KAction *action = new KBookmarkAction(bookmark, m_owner, this); |