Changeset View
Changeset View
Standalone View
Standalone View
src/Part.cpp
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Line(s) | 201 | { | |||
---|---|---|---|---|---|
208 | 208 | | |||
209 | Session *session = SessionManager::instance()->createSession(profile); | 209 | Session *session = SessionManager::instance()->createSession(profile); | ||
210 | 210 | | |||
211 | // override the default directory specified in the profile | 211 | // override the default directory specified in the profile | ||
212 | if (!directory.isEmpty() && profile->startInCurrentSessionDir()) { | 212 | if (!directory.isEmpty() && profile->startInCurrentSessionDir()) { | ||
213 | session->setInitialWorkingDirectory(directory); | 213 | session->setInitialWorkingDirectory(directory); | ||
214 | } | 214 | } | ||
215 | 215 | | |||
216 | _viewManager->createView(_viewManager->activeContainer(), session); | 216 | auto newView = _viewManager->createView(session); | ||
217 | _viewManager->activeContainer()->addView(newView); | ||||
217 | } | 218 | } | ||
218 | 219 | | |||
219 | void Part::activeViewChanged(SessionController *controller) | 220 | void Part::activeViewChanged(SessionController *controller) | ||
220 | { | 221 | { | ||
221 | Q_ASSERT(controller); | 222 | Q_ASSERT(controller); | ||
222 | Q_ASSERT(controller->view()); | 223 | Q_ASSERT(controller->view()); | ||
223 | 224 | | |||
224 | // remove existing controller | 225 | // remove existing controller | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |