summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarksmanager.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-08-04 14:27:07 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-04 14:27:07 +0200
commit47344f0680af144ae2555c8dda39c6e050d34b40 (patch)
tree2b37c6165e05faf6fec6ae7b4b63cc09302edef3 /src/bookmarks/bookmarksmanager.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-47344f0680af144ae2555c8dda39c6e050d34b40.tar.xz
- Add a 'Don't ask again' option to some message dialog
- Prevent a crash if the previous option is enabled because KMenu blocks all GUI events ... BUG: 246565
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