[rkward-cvs] SF.net SVN: rkward:[3724] trunk/rkward/rkward/rkconsole.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Aug 29 13:42:38 UTC 2011


Revision: 3724
          http://rkward.svn.sourceforge.net/rkward/?rev=3724&view=rev
Author:   tfry
Date:     2011-08-29 13:42:37 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
Apparently, some distributions no longer include katepart in kdebase

Modified Paths:
--------------
    trunk/rkward/rkward/rkconsole.cpp

Modified: trunk/rkward/rkward/rkconsole.cpp
===================================================================
--- trunk/rkward/rkward/rkconsole.cpp	2011-08-13 10:12:07 UTC (rev 3723)
+++ trunk/rkward/rkward/rkconsole.cpp	2011-08-29 13:42:37 UTC (rev 3724)
@@ -69,8 +69,12 @@
 	layout->setContentsMargins (0, 0, 0, 0);
 
 	// create a Kate-part as command-editor
-	KTextEditor::Editor* editor = KTextEditor::editor("katepart");
-	RK_ASSERT (editor);
+	KTextEditor::Editor* editor = KTextEditor::editor ("katepart");
+	if (!editor) {
+		RK_ASSERT (false);
+		KMessageBox::error (this, i18n ("The 'katepart' component could not be loaded. RKWard cannot run without katepart, and will exit, now. Please install katepart, and try again."), i18n ("'katepart' component could not be found"));
+		exit (1);
+	}
 
 	doc = editor->createDocument (this);
 	view = doc->createView (this);

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list