summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkprovider.cpp
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2011-01-11 19:39:23 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-11 19:39:23 +0100
commit0e57cc1261bf0a67a0031794bb7497dac98745bc (patch)
treeddb2a2d118e124dced01e9b4809a0cd546a4ac6d /src/bookmarks/bookmarkprovider.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-0e57cc1261bf0a67a0031794bb7497dac98745bc.tar.xz
Automatically refreshing bookmarks when editing them.
Suboptimal solution. We probably need bk management model/view based to improve. Reviewed by adjam :)
Diffstat (limited to 'src/bookmarks/bookmarkprovider.cpp')
-rw-r--r--src/bookmarks/bookmarkprovider.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp
index 2a9dbe2e..37eabcc4 100644
--- a/src/bookmarks/bookmarkprovider.cpp
+++ b/src/bookmarks/bookmarkprovider.cpp
@@ -37,6 +37,8 @@
#include "bookmarkstoolbar.h"
#include "bookmarkowner.h"
#include "iconmanager.h"
+#include "mainwindow.h"
+#include "webtab.h"
// KDE Includes
#include <KActionCollection>
@@ -209,6 +211,8 @@ void BookmarkProvider::slotBookmarksChanged()
fillBookmarkBar(bookmarkToolBar);
}
}
+ if(Application::instance()->mainWindow()->currentTab()->url().toMimeDataString().contains("about:bookmarks"))
+ Application::instance()->loadUrl(KUrl("about:bookmarks"), Rekonq::CurrentTab);
}
@@ -256,6 +260,8 @@ void BookmarkProvider::slotPanelChanged()
if (panel && panel != sender())
panel->loadFoldedState();
}
+ if(Application::instance()->mainWindow()->currentTab()->url().toMimeDataString().contains("about:bookmarks"))
+ Application::instance()->loadUrl(KUrl("about:bookmarks"), Rekonq::CurrentTab);
}