summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarksmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-05 01:41:05 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-05 01:41:05 +0200
commitf86f04ee3f29f173d606d30dccaeb8eced9becae (patch)
tree597625079e44736402128ef9dca68ec9c83abb27 /src/bookmarks/bookmarksmanager.cpp
parentStupid spaces.. (diff)
parent- Add a 'Don't ask again' option to some message dialog (diff)
downloadrekonq-f86f04ee3f29f173d606d30dccaeb8eced9becae.tar.xz
Merge branch 'm155'
Diffstat (limited to 'src/bookmarks/bookmarksmanager.cpp')
-rw-r--r--src/bookmarks/bookmarksmanager.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp
index ca85be23..792baaeb 100644
--- a/src/bookmarks/bookmarksmanager.cpp
+++ b/src/bookmarks/bookmarksmanager.cpp
@@ -103,7 +103,11 @@ void BookmarkOwner::openFolderinTabs(const KBookmarkGroup &bookmark)
i18ncp("%1=Number of tabs. Value is always >=8",
"You are about to open %1 tabs.\nAre you sure?",
"You are about to open %1 tabs.\nAre you sure?",
- urlList.length())
+ urlList.length()),
+ "",
+ KStandardGuiItem::cont(),
+ KStandardGuiItem::cancel(),
+ "openFolderInTabs_askAgain"
) == KMessageBox::Continue)
)
return;
@@ -263,6 +267,7 @@ BookmarkToolBar::BookmarkToolBar( const QString &objectName,
, m_filled(false)
, m_currentMenu(0)
{
+ connect(Application::bookmarkProvider()->bookmarkManager(), SIGNAL(changed(QString,QString)), this, SLOT(hideMenu()));
}
@@ -296,6 +301,13 @@ void BookmarkToolBar::menuHidden()
}
+void BookmarkToolBar::hideMenu()
+{
+ if(m_currentMenu)
+ m_currentMenu->hide();
+}
+
+
bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
{
// To switch root folders as in a menubar