diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-10-10 17:13:08 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-10 17:28:16 +0200 |
commit | ca982741975ad9e1222a284ede2de387e4fffa61 (patch) | |
tree | f7daaed4fc4951877ce9e517aece9d4e83bbe674 /Source/WebKit2/UIProcess/WebContext.cpp | |
parent | 265d7172700739c0b2b14e33eb10e12cc9e90326 (diff) | |
download | qtwebkit-ca982741975ad9e1222a284ede2de387e4fffa61.tar.gz |
Warning on starting WebProcess
The localStorageDirectory is set right after the WebContext is created,
but during creation the path is empty and will cause a warning in QDir.
Task-number: QTBUG-33866
Change-Id: I940e08c217ee2401e326bf60910bc628add2f30b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/WebContext.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/WebContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/WebContext.cpp b/Source/WebKit2/UIProcess/WebContext.cpp index aee99940a..fd57610d4 100644 --- a/Source/WebKit2/UIProcess/WebContext.cpp +++ b/Source/WebKit2/UIProcess/WebContext.cpp @@ -197,7 +197,9 @@ WebContext::WebContext(ProcessModel processModel, const String& injectedBundlePa webContextCounter.increment(); #endif - m_storageManager->setLocalStorageDirectory(localStorageDirectory()); + String localStorageDirectory = this->localStorageDirectory(); + if (!localStorageDirectory.isEmpty()) + m_storageManager->setLocalStorageDirectory(localStorageDirectory); } #if !PLATFORM(MAC) |