summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 9dd98a49..768f25a2 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -47,6 +47,7 @@
#include "mainwindow.h"
#include "opensearchmanager.h"
#include "sessionmanager.h"
+#include "syncmanager.h"
#include "stackedurlbar.h"
#include "tabbar.h"
#include "urlbar.h"
@@ -150,6 +151,13 @@ Application::~Application()
m_userAgentManager.clear();
}
+ if (!m_syncManager.isNull())
+ {
+ kDebug() << "deleting sync manager";
+ delete m_syncManager.data();
+ m_syncManager.clear();
+ }
+
// TODO:
// add a check to NOT close rekonq
// until last download is finished
@@ -403,6 +411,16 @@ UserAgentManager *Application::userAgentManager()
}
+SyncManager *Application::syncManager()
+{
+ if (m_syncManager.isNull())
+ {
+ m_syncManager = new SyncManager(instance());
+ }
+ return m_syncManager.data();
+}
+
+
void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
{
if (url.isEmpty())