Changeset View
Changeset View
Standalone View
Standalone View
src/panels/terminal/terminalpanel.cpp
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Line(s) | 157 | } else if (!m_konsolePartMissingMessage) { | |||
---|---|---|---|---|---|
172 | m_layout->addStretch(); | 172 | m_layout->addStretch(); | ||
173 | QTimer::singleShot(0, m_konsolePartMissingMessage, &KMessageWidget::animatedShow); | 173 | QTimer::singleShot(0, m_konsolePartMissingMessage, &KMessageWidget::animatedShow); | ||
174 | } else { | 174 | } else { | ||
175 | m_konsolePartMissingMessage->animatedShow(); | 175 | m_konsolePartMissingMessage->animatedShow(); | ||
176 | } | 176 | } | ||
177 | } | 177 | } | ||
178 | if (m_terminal) { | 178 | if (m_terminal) { | ||
179 | m_terminal->showShellInDir(url().toLocalFile()); | 179 | m_terminal->showShellInDir(url().toLocalFile()); | ||
180 | if(!hasProgramRunning()) { | ||||
180 | changeDir(url()); | 181 | changeDir(url()); | ||
anthonyfieroni: Just add braces, first on same line as condition. | |||||
182 | } | ||||
181 | m_terminalWidget->setFocus(); | 183 | m_terminalWidget->setFocus(); | ||
182 | connect(m_konsolePart, SIGNAL(currentDirectoryChanged(QString)), | 184 | connect(m_konsolePart, SIGNAL(currentDirectoryChanged(QString)), | ||
183 | this, SLOT(slotKonsolePartCurrentDirectoryChanged(QString))); | 185 | this, SLOT(slotKonsolePartCurrentDirectoryChanged(QString))); | ||
184 | } | 186 | } | ||
185 | 187 | | |||
186 | Panel::showEvent(event); | 188 | Panel::showEvent(event); | ||
187 | } | 189 | } | ||
188 | 190 | | |||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |
Just add braces, first on same line as condition.