summaryrefslogtreecommitdiff
path: root/src/sessionmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-05 00:29:13 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-05 00:29:13 +0100
commitc328e203e0d84177a0028d8ba5b0af4b82c16eeb (patch)
treee6b38cc023c1920a6b2bab87a36ac5932a534ad5 /src/sessionmanager.cpp
parentMerge commit 'refs/merge-requests/85' of git://gitorious.org/rekonq/mainline (diff)
downloadrekonq-c328e203e0d84177a0028d8ba5b0af4b82c16eeb.tar.xz
QPointers --> QWeakPointers
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r--src/sessionmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index f4e7cd3e..f512e943 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -71,10 +71,10 @@ void SessionManager::saveSession()
}
QTextStream out(&sessionFile);
MainWindowList wl = Application::instance()->mainWindowList();
- Q_FOREACH(QPointer<MainWindow> w, wl)
+ Q_FOREACH(QWeakPointer<MainWindow> w, wl)
{
out << "window\n";
- MainView *mv = w->mainView();
+ MainView *mv = w.data()->mainView();
for (int i = 0 ; i < mv->count() ; i++)
{
out << mv->webTab(i)->url().toEncoded() << "\n";