diff --git a/src/cantor.cpp b/src/cantor.cpp --- a/src/cantor.cpp +++ b/src/cantor.cpp @@ -166,7 +166,8 @@ { KShortcutsDialog dlg( KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsDisallowed, this ); dlg.addCollection( actionCollection(), i18n("Cantor") ); - dlg.addCollection( m_part->actionCollection(), i18n("Cantor") ); + if (m_part) + dlg.addCollection( m_part->actionCollection(), i18n("Cantor") ); dlg.configure( true ); }