Commit b916dd22 authored by Jekyll Wu's avatar Jekyll Wu

Rename 'persistant' to 'persistent'.

This is a common misspelling.
parent a6477244
...@@ -58,7 +58,7 @@ class Profile; ...@@ -58,7 +58,7 @@ class Profile;
* *
* Some changes made in the dialog are preview-only changes which cause * Some changes made in the dialog are preview-only changes which cause
* the SessionManager's changeProfile() method to be called with * the SessionManager's changeProfile() method to be called with
* the persistant argument set to false. These changes are then * the persistent argument set to false. These changes are then
* un-done when the dialog is closed. * un-done when the dialog is closed.
*/ */
class KONSOLEPRIVATE_EXPORT EditProfileDialog : public KDialog class KONSOLEPRIVATE_EXPORT EditProfileDialog : public KDialog
......
...@@ -393,7 +393,7 @@ QString SessionManager::saveProfile(Profile::Ptr info) ...@@ -393,7 +393,7 @@ QString SessionManager::saveProfile(Profile::Ptr info)
} }
void SessionManager::changeProfile(Profile::Ptr info , void SessionManager::changeProfile(Profile::Ptr info ,
QHash<Profile::Property,QVariant> propertyMap, bool persistant) QHash<Profile::Property,QVariant> propertyMap, bool persistent)
{ {
Q_ASSERT(info); Q_ASSERT(info);
...@@ -415,7 +415,7 @@ void SessionManager::changeProfile(Profile::Ptr info , ...@@ -415,7 +415,7 @@ void SessionManager::changeProfile(Profile::Ptr info ,
if (group) if (group)
{ {
foreach(const Profile::Ptr &profile, group->profiles()) foreach(const Profile::Ptr &profile, group->profiles())
changeProfile(profile,propertyMap,persistant); changeProfile(profile,propertyMap,persistent);
return; return;
} }
...@@ -427,7 +427,7 @@ void SessionManager::changeProfile(Profile::Ptr info , ...@@ -427,7 +427,7 @@ void SessionManager::changeProfile(Profile::Ptr info ,
// save changes to disk, unless the profile is hidden, in which case // save changes to disk, unless the profile is hidden, in which case
// it has no file on disk // it has no file on disk
if ( persistant && !info->isHidden() ) if ( persistent && !info->isHidden() )
{ {
info->setProperty(Profile::Path,saveProfile(info)); info->setProperty(Profile::Path,saveProfile(info));
} }
......
...@@ -133,12 +133,12 @@ public: ...@@ -133,12 +133,12 @@ public:
* *
* @param profile The profile to change * @param profile The profile to change
* @param propertyMap A map between profile properties and values describing the changes * @param propertyMap A map between profile properties and values describing the changes
* @param persistant If true, the changes are saved to the profile's configuration file, * @param persistent If true, the changes are saved to the profile's configuration file,
* set this to false if you want to preview possible changes to a profile but do not * set this to false if you want to preview possible changes to a profile but do not
* wish to make them permanent. * wish to make them permanent.
*/ */
void changeProfile(Profile::Ptr profile , QHash<Profile::Property,QVariant> propertyMap, void changeProfile(Profile::Ptr profile , QHash<Profile::Property,QVariant> propertyMap,
bool persistant = true); bool persistent = true);
/** /**
* Returns a Profile object describing the default type of session, which is used * Returns a Profile object describing the default type of session, which is used
......
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