Browse Source

Fix personnal->personal typo

Closes #2810
pull/2815/head
tux3 10 years ago
parent
commit
38c68658e0
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/nexus.cpp
  2. 2
      src/persistence/profile.cpp
  3. 10
      src/persistence/settings.cpp
  4. 6
      src/persistence/settings.h
  5. 4
      src/persistence/settingsserializer.cpp

2
src/nexus.cpp

@ -275,7 +275,7 @@ void Nexus::setProfile(Profile* profile) @@ -275,7 +275,7 @@ void Nexus::setProfile(Profile* profile)
{
getInstance().profile = profile;
if (profile)
Settings::getInstance().loadPersonnal(profile);
Settings::getInstance().loadpersonal(profile);
}
AndroidGUI* Nexus::getAndroidGUI()

2
src/persistence/profile.cpp

@ -48,7 +48,7 @@ Profile::Profile(QString name, QString password, bool isNewProfile) @@ -48,7 +48,7 @@ Profile::Profile(QString name, QString password, bool isNewProfile)
s.setCurrentProfile(name);
s.saveGlobal();
// At this point it's too early to load the personnal settings (Nexus will do it), so we always load
// At this point it's too early to load the personal settings (Nexus will do it), so we always load
// the history, and if it fails we can't change the setting now, but we keep a nullptr
history.reset(new History{name, password});
if (!history->isValid())

10
src/persistence/settings.cpp

@ -265,18 +265,18 @@ void Settings::loadGlobal() @@ -265,18 +265,18 @@ void Settings::loadGlobal()
loaded = true;
}
void Settings::loadPersonnal()
void Settings::loadpersonal()
{
Profile* profile = Nexus::getProfile();
if (!profile)
{
qCritical() << "No active profile, couldn't load personnal settings";
qCritical() << "No active profile, couldn't load personal settings";
return;
}
loadPersonnal(profile);
loadpersonal(profile);
}
void Settings::loadPersonnal(Profile* profile)
void Settings::loadpersonal(Profile* profile)
{
QMutexLocker locker{&bigLock};
@ -288,7 +288,7 @@ void Settings::loadPersonnal(Profile* profile) @@ -288,7 +288,7 @@ void Settings::loadPersonnal(Profile* profile)
if (QFile(tmp).exists()) // otherwise, filePath remains the global file
filePath = tmp;
qDebug()<<"Loading personnal settings from"<<filePath;
qDebug()<<"Loading personal settings from"<<filePath;
SettingsSerializer ps(filePath, profile->getPassword());
ps.load();

6
src/persistence/settings.h

@ -43,14 +43,14 @@ public: @@ -43,14 +43,14 @@ public:
QString getSettingsDirPath(); ///< The returned path ends with a directory separator
void createSettingsDir(); ///< Creates a path to the settings dir, if it doesn't already exist
void createPersonal(QString basename); ///< Write a default personnal .ini settings file for a profile
void createPersonal(QString basename); ///< Write a default personal .ini settings file for a profile
void savePersonal(); ///< Asynchronous, saves the current profile
void savePersonal(Profile *profile); ///< Asynchronous
void loadGlobal();
void loadPersonnal();
void loadPersonnal(Profile *profile);
void loadpersonal();
void loadpersonal(Profile *profile);
public slots:
void saveGlobal(); ///< Asynchronous

4
src/persistence/settingsserializer.cpp

@ -373,7 +373,7 @@ void SettingsSerializer::readSerialized() @@ -373,7 +373,7 @@ void SettingsSerializer::readSerialized()
stream >> sizeData;
if (sizeData.isEmpty())
{
qWarning("The personnal save file is corrupted!");
qWarning("The personal save file is corrupted!");
return;
}
quint64 size = dataToVUint(sizeData);
@ -386,7 +386,7 @@ void SettingsSerializer::readSerialized() @@ -386,7 +386,7 @@ void SettingsSerializer::readSerialized()
stream >> indexData;
if (indexData.isEmpty())
{
qWarning("The personnal save file is corrupted!");
qWarning("The personal save file is corrupted!");
return;
}
quint64 index = dataToVUint(indexData);

Loading…
Cancel
Save