forked from qt-creator/qt-creator
Fix QFSFileEngine warning about trying to open an empty file.
Change-Id: I3cda6965c10924bc611c2d7d73fb309a63976e18 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user