diff options
| author | Andrea Diamantini <adjam7@gmail.com> | 2011-05-26 00:16:10 +0200 | 
|---|---|---|
| committer | Andrea Diamantini <adjam7@gmail.com> | 2011-05-26 00:16:10 +0200 | 
| commit | 146575c0b2099142653a261ea508a7637c6dadfd (patch) | |
| tree | 7927ee4c9035f9a220c1eb0f8a302baecaf5b80d /src | |
| parent | Adding DownloadManager class, following Pierre and Benjamin code changes. (diff) | |
| download | rekonq-146575c0b2099142653a261ea508a7637c6dadfd.tar.xz | |
Last
Diffstat (limited to 'src')
| -rw-r--r-- | src/application.cpp | 8 | ||||
| -rw-r--r-- | src/application.h | 1 | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/src/application.cpp b/src/application.cpp index 311c90a2..c00f3f96 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -126,6 +126,14 @@ Application::~Application()          m_adblockManager.clear();      } +    // TODO: +    // add a check to NOT close rekonq +    // until last download is finished + +    if (!m_downloadManager.isNull()) { +        delete m_adblockManager.data(); +        m_adblockManager.clear(); +    }  } diff --git a/src/application.h b/src/application.h index f56c36ac..ec377a71 100644 --- a/src/application.h +++ b/src/application.h @@ -79,6 +79,7 @@ class REKONQ_TESTS_EXPORT Application : public KUniqueApplication  public:      Application();      ~Application(); +      int newInstance();      static Application *instance(); | 
