mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Don't crash if we don't have a terminal
Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24337
This commit is contained in:
parent
99bfbbf1f3
commit
29778152ad
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue