diff options
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 8ddb6e39..bc22c91c 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -504,6 +504,10 @@ void OrganizerCore::createDefaultProfile() void OrganizerCore::setCurrentProfile(const QString &profileName)
{
+ if ((m_CurrentProfile != nullptr) &&
+ (profileName == m_CurrentProfile->name())) {
+ return;
+ }
QString profileDir = qApp->property("dataPath").toString() + "/" + ToQString(AppConfig::profilesPath()) + "/" + profileName;
Profile *newProfile = new Profile(QDir(profileDir), managedGame());
|
