From dbdc2538f98147c7661cac00fe135df59aeb04e3 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 11 May 2015 21:39:56 +0200 Subject: bugfix: upon closing the profiles dialog, the profile was changed to the top-most profile and back --- src/organizercore.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/organizercore.cpp') 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()); -- cgit v1.3.1