[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/plugins/sourceformatter
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2008-11-30 22:35:20
Message-ID: 1228084520.518039.31716.nullmailer () svn ! kde ! org
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic