diff options
| author | Elvis Angelaccio <[email protected]> | 2019-10-01 22:28:20 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-10-01 22:28:20 +0200 |
| commit | 335b1f048ec115657fb2ed0bdd36282d8ffcc60f (patch) | |
| tree | 18d4a5db719a82c2e1c98d2f4b49625ca96cf9a0 /src | |
| parent | 29778152adc5cd81377a80cf606a1fae008e9bfc (diff) | |
Fix another crash if HAVE_TERMINAL is not defined
Inspired by 29778152ad.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7099d58d3..87f1e8404 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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(); } |
