--- kdevelop/ckdevelop.cpp	Mon Jun 19 08:35:11 2000
+++ ckdevelop.patched	Sun Jul  2 18:15:06 2000
@@ -985,6 +985,17 @@
        appl_process << exec_str;
        cerr << endl << "EXEC:" << exec_str;
     }
+    else if (prj->getProjectType().find("kde2", 0, false) != -1) {
+	//a KDE2 application
+	const QString oldGroup = config->group();
+	config->setGroup("QT2");
+	QString kde2dir =  QString("KDEDIR=") + config->readEntry("kde2dir") + " ";
+	config->setGroup(oldGroup);
+
+	appl_process << kde2dir << "./" + program;
+	cerr << endl << "EXEC:" << kde2dir << "./" + program;
+	o_tab_view->setCurrentTab(STDERR);
+    }
     else
     {
       appl_process << "./" + program;
