summaryrefslogtreecommitdiff
path: root/src/browserapplication.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-06 23:42:30 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-06 23:42:30 +0100
commit3349db61eed34e3c1fb274d66ac55405fa188fdc (patch)
treed663222a255d9f14743a19cba7f96ddda9979dd4 /src/browserapplication.cpp
parentFixed Window Icon (diff)
downloadrekonq-3349db61eed34e3c1fb274d66ac55405fa188fdc.tar.xz
Fixed crash when closing rekonq with more than one tab
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r--src/browserapplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browserapplication.cpp b/src/browserapplication.cpp
index 897037ab..8a1ffc5a 100644
--- a/src/browserapplication.cpp
+++ b/src/browserapplication.cpp
@@ -203,7 +203,7 @@ void BrowserApplication::clean()
void BrowserApplication::saveSession()
{
QWebSettings *globalSettings = QWebSettings::globalSettings();
- if (globalSettings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ if ( globalSettings->testAttribute( QWebSettings::PrivateBrowsingEnabled ) )
return;
clean();
@@ -250,7 +250,7 @@ void BrowserApplication::restoreLastSession()
BrowserMainWindow *newWindow = 0;
if (m_mainWindows.count() == 1
&& mainWindow()->tabWidget()->count() == 1
- && mainWindow()->currentTab()->url() == QUrl())
+ && mainWindow()->currentTab()->url() == KUrl())
{
newWindow = mainWindow();
}