┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dolphinpart.cpp1
-rw-r--r--src/dolphinpart.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index e155573cc..bc7086399 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -217,6 +217,7 @@ bool DolphinPart::openUrl(const KUrl& url)
emit m_extension->setLocationBarUrl(prettyUrl);
emit started(0); // get the wheel to spin
m_view->setUrl(url);
+ emit aboutToOpenURL();
if (reload)
m_view->reload();
return true;
diff --git a/src/dolphinpart.h b/src/dolphinpart.h
index b252c78e1..5942d651e 100644
--- a/src/dolphinpart.h
+++ b/src/dolphinpart.h
@@ -89,6 +89,12 @@ Q_SIGNALS:
*/
void viewModeChanged();
+
+ /**
+ * Emitted whenever the current URL is about to be changed.
+ */
+ void aboutToOpenURL();
+
private Q_SLOTS:
void slotCompleted(const KUrl& url);
void slotCanceled(const KUrl& url);