diff options
| author | Tannin <devnull@localhost> | 2015-05-11 21:39:56 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-11 21:39:56 +0200 |
| commit | dbdc2538f98147c7661cac00fe135df59aeb04e3 (patch) | |
| tree | b8c14280cc4b7ba6398612e9b5350ca63934e91e /src/organizercore.cpp | |
| parent | 5a908442d646b5f3dbf7d22fc2331c8cc2b0d15a (diff) | |
bugfix: upon closing the profiles dialog, the profile was changed to the
top-most profile and back
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());
|
