diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-04 14:27:07 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-04 14:27:07 +0200 |
commit | 47344f0680af144ae2555c8dda39c6e050d34b40 (patch) | |
tree | 2b37c6165e05faf6fec6ae7b4b63cc09302edef3 /src/bookmarks/bookmarksmanager.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-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.cpp | 14 |
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 |