Changeset View
Changeset View
Standalone View
Standalone View
src/SessionManager.cpp
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | |||||
151 | void SessionManager::setSessionProfile(Session *session, Profile::Ptr profile) | 151 | void SessionManager::setSessionProfile(Session *session, Profile::Ptr profile) | ||
152 | { | 152 | { | ||
153 | if (!profile) { | 153 | if (!profile) { | ||
154 | profile = ProfileManager::instance()->defaultProfile(); | 154 | profile = ProfileManager::instance()->defaultProfile(); | ||
155 | } | 155 | } | ||
156 | 156 | | |||
157 | Q_ASSERT(profile); | 157 | Q_ASSERT(profile); | ||
158 | 158 | | |||
159 | if (_sessionProfiles[session] == profile) { | ||||
160 | return; | ||||
161 | } | ||||
162 | | ||||
159 | _sessionProfiles[session] = profile; | 163 | _sessionProfiles[session] = profile; | ||
160 | 164 | | |||
161 | applyProfile(session, profile, false); | 165 | applyProfile(session, profile, false); | ||
162 | 166 | | |||
163 | emit sessionUpdated(session); | 167 | emit sessionUpdated(session); | ||
164 | } | 168 | } | ||
165 | 169 | | |||
166 | void SessionManager::applyProfile(Session *session, const Profile::Ptr profile, | 170 | void SessionManager::applyProfile(Session *session, const Profile::Ptr profile, | ||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |