Commit 282f2e40 authored by Friedemann Kleint's avatar Friedemann Kleint

Fix QFSFileEngine warning about trying to open an empty file.

Change-Id: I3cda6965c10924bc611c2d7d73fb309a63976e18
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent cb87ce78
......@@ -658,7 +658,7 @@ QVariantMap SettingsAccessor::restoreSettings() const
// Time to consider shared settings...
SettingsData sharedSettings;
if (m_sharedFileAcessor.readFile(&sharedSettings)) {
if (!sharedSettings.m_fileName.isEmpty() && m_sharedFileAcessor.readFile(&sharedSettings)) {
bool useSharedSettings = true;
if (sharedSettings.m_version != settings.m_version) {
int baseFileVersion;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment