summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-02-17 12:19:11 (GMT)
committerkh1 <qt-info@nokia.com>2010-02-17 14:49:36 (GMT)
commit4941c9b9a83a6ea5c07f470fb853d1111ce4c7b9 (patch)
tree4fdea0d337a029c7312681e34e76329bd02e3c51
parent4f9f068ccd2da8859eb0208455ac2a6ca494afdc (diff)
downloadQt-4941c9b9a83a6ea5c07f470fb853d1111ce4c7b9.zip
Qt-4941c9b9a83a6ea5c07f470fb853d1111ce4c7b9.tar.gz
Qt-4941c9b9a83a6ea5c07f470fb853d1111ce4c7b9.tar.bz2
Make sure the bookmarks menu updates on add/ remove as well.
Reviewed-by: ck
-rw-r--r--tools/assistant/tools/assistant/bookmarkmanager.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/assistant/tools/assistant/bookmarkmanager.cpp b/tools/assistant/tools/assistant/bookmarkmanager.cpp
index 8fba811..b73fbb5 100644
--- a/tools/assistant/tools/assistant/bookmarkmanager.cpp
+++ b/tools/assistant/tools/assistant/bookmarkmanager.cpp
@@ -187,6 +187,10 @@ BookmarkManager::BookmarkManager()
connect(&HelpEngineWrapper::instance(), SIGNAL(setupFinished()), this,
SLOT(setupFinished()));
+ connect(bookmarkModel, SIGNAL(rowsRemoved(QModelIndex, int, int)), this,
+ SLOT(refeshBookmarkMenu()));
+ connect(bookmarkModel, SIGNAL(rowsInserted(QModelIndex, int, int)), this,
+ SLOT(refeshBookmarkMenu()));
connect(bookmarkModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this,
SLOT(refeshBookmarkMenu()));
}
@@ -323,10 +327,8 @@ void BookmarkManager::setupFinished()
void BookmarkManager::addBookmark()
{
TRACE_OBJ
- if (CentralWidget *widget = CentralWidget::instance()) {
- showBookmarkDialog(widget->currentTitle(),
- widget->currentSource().toString());
- }
+ if (CentralWidget *widget = CentralWidget::instance())
+ addBookmark(widget->currentTitle(), widget->currentSource().toString());
}
void BookmarkManager::removeBookmark()