diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-02-21 11:17:38 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-02-21 11:17:38 +0100 |
commit | e6d902eb8dc2d6815d4606519b638c6ec0f435e2 (patch) | |
tree | f8ef2432ae1ffe6ecad8b90e3a8c022fe80b8626 /src/application.cpp | |
parent | removed unuseful m_defaultIcon (diff) | |
download | rekonq-e6d902eb8dc2d6815d4606519b638c6ec0f435e2.tar.xz |
It seems good now. But we have to test it a lot with
Qt 4.5..
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/src/application.cpp b/src/application.cpp index 53825411..c4b4b38f 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -63,6 +63,7 @@ Application::Application() : KUniqueApplication() { m_mainWindow = new MainWindow(); + m_mainWindow->setObjectName("MainWindow"); setWindowIcon( KIcon("rekonq") ); m_mainWindow->show(); @@ -72,8 +73,9 @@ Application::Application() Application::~Application() { - delete m_mainWindow; delete s_networkAccessManager; + delete s_historyManager; + delete m_mainWindow; } @@ -131,29 +133,6 @@ void Application::downloadUrl(const KUrl &srcUrl, const KUrl &destUrl) } -// void Application::saveSession() -// { -// QWebSettings *globalSettings = QWebSettings::globalSettings(); -// if ( globalSettings->testAttribute( QWebSettings::PrivateBrowsingEnabled ) ) -// return; -// -// KConfig config("rekonqrc"); -// KConfigGroup group = config.group("sessions"); -// QByteArray data; -// QBuffer buffer(&data); -// QDataStream stream(&buffer); -// buffer.open(QIODevice::ReadWrite); -// -// stream << m_mainWindows.count(); -// for (int i = 0; i < m_mainWindows.count(); ++i) -// { -// stream << m_mainWindows.at(i)->saveState(); -// } -// -// group.writeEntry( QString("lastSession"), data ); -// } - - void Application::openUrl(const KUrl &url) { mainWindow()->loadUrl(url); |