┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <[email protected]>2019-10-01 11:23:12 +0200
committerHannah von Reth <[email protected]>2019-10-01 15:04:24 +0200
commit29778152adc5cd81377a80cf606a1fae008e9bfc (patch)
tree572c083ce79c84abf84de3cc5a8cb8753c21668c /src
parent99bfbbf1f3ac5eb2194d6dc122dd469d4c783ff0 (diff)
Don't crash if we don't have a terminal
Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24337
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 5f7a8e728..7099d58d3 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -514,7 +514,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
}
}
- if (m_terminalPanel->hasProgramRunning() && GeneralSettings::confirmClosingTerminalRunningProgram() && closedByUser) {
+ if (m_terminalPanel && m_terminalPanel->hasProgramRunning() && GeneralSettings::confirmClosingTerminalRunningProgram() && closedByUser) {
// Ask if the user really wants to quit Dolphin with a program that is still running in the Terminal panel
// Open a confirmation dialog with 3 buttons:
// QDialogButtonBox::Yes -> Quit