summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-23 00:34:00 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-23 00:34:00 +0100
commit1f3b6569ae2297db11cef6ce1a8c2efb8f4e5007 (patch)
treeaace2b63e78e334d05cfdc15902dee92fe6ffdca /src/urlbar/urlbar.cpp
parentCleans up "tab switch" management and expecially the use of signals (diff)
downloadrekonq-1f3b6569ae2297db11cef6ce1a8c2efb8f4e5007.tar.xz
Save one updateRightIcons call from the bookmark icon.
Does this helps here? CCBUG:259328
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index c0edc9df..ceecf211 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -109,9 +109,6 @@ UrlBar::UrlBar(QWidget *parent)
connect(_tab->view(), SIGNAL(loadStarted()), this, SLOT(clearRightIcons()));
connect(_tab->view(), SIGNAL(iconChanged()), this, SLOT(refreshFavicon()));
- // bookmark icon
- connect(Application::bookmarkProvider()->bookmarkManager(), SIGNAL(changed(const QString &, const QString &)), this, SLOT(updateRightIcons()));
-
// search icon
connect(Application::opensearchManager(), SIGNAL(openSearchEngineAdded(const QString &, const QString &, const QString &)), this, SLOT(updateRightIcons()));
@@ -368,10 +365,15 @@ void UrlBar::showBookmarkInfo(const QPoint &pos)
if (bookmark.isNull())
{
bookmark = Application::bookmarkProvider()->bookmarkOwner()->bookmarkCurrentPage();
+
+ // set bk icon
+ bt->setIcon(KIcon("bookmarks"));
+ bt->setToolTip(i18n("Edit this bookmark"));
}
else
{
BookmarkWidget *widget = new BookmarkWidget(bookmark, window());
+ connect(widget, SIGNAL(updateIcon()), this, SLOT(updateRightIcons()));
widget->showAt(pos);
}
}