From kde-commits Sun Nov 30 22:35:20 2008 From: David Nolden Date: Sun, 30 Nov 2008 22:35:20 +0000 To: kde-commits Subject: KDE/kdevplatform/plugins/sourceformatter Message-Id: <1228084520.518039.31716.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122808452819864 SVN commit 891011 by zwabel: Don't crash when no editor was found M +3 -1 sourceformattersettings.cpp --- trunk/KDE/kdevplatform/plugins/sourceformatter/sourceformattersettings.cpp #891010:891011 @@ -64,9 +64,11 @@ { // add texteditor preview KTextEditor::Editor *editor = KTextEditor::EditorChooser::editor(); - if (!editor) + if (!editor) { KMessageBox::error(this, i18n("A KDE text-editor component could not be found.\n" "Please check your KDE installation.")); + return; + } m_document = editor->createDocument(this);