mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Fix another crash if HAVE_TERMINAL is not defined
Inspired by 29778152ad
.
This commit is contained in:
parent
29778152ad
commit
335b1f048e
|
@ -1189,7 +1189,7 @@ void DolphinMainWindow::updateWindowTitle()
|
|||
|
||||
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
|
||||
{
|
||||
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||
if (m_terminalPanel && m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||
m_tearDownFromPlacesRequested = true;
|
||||
m_terminalPanel->goHome();
|
||||
// m_placesPanel->proceedWithTearDown() will be called in slotTerminalDirectoryChanged
|
||||
|
@ -1200,7 +1200,7 @@ void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mo
|
|||
|
||||
void DolphinMainWindow::slotStorageTearDownExternallyRequested(const QString& mountPath)
|
||||
{
|
||||
if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||
if (m_terminalPanel && m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) {
|
||||
m_tearDownFromPlacesRequested = false;
|
||||
m_terminalPanel->goHome();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue