Commit bca76147 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix segfault, as message types not there for KWrite

parent ee9ed645
......@@ -379,7 +379,9 @@ void KateConfigDialog::slotApply()
cg.writeEntry("Close After Last", sessionConfigUi.modCloseAfterLast->isChecked());
m_mainWindow->setModCloseAfterLast(sessionConfigUi.modCloseAfterLast->isChecked());
cg.writeEntry("Show output view for message type", m_messageTypes->currentIndex());
if (m_messageTypes) {
cg.writeEntry("Show output view for message type", m_messageTypes->currentIndex());
}
cg.writeEntry("Stash unsaved file changes", sessionConfigUi.stashUnsavedFilesChanges->isChecked());
KateApp::self()->stashManager()->setStashUnsavedChanges(sessionConfigUi.stashUnsavedFilesChanges->isChecked());
......
......@@ -86,7 +86,7 @@ private:
bool m_dataChanged = false;
QComboBox *m_messageTypes;
QComboBox *m_messageTypes = nullptr;
QCheckBox *m_modNotifications;
QComboBox *m_cmbQuickOpenListMode;
QSpinBox *m_tabLimit;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment