[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    PATCH for KDevelop 1.2
From:       Joachim Ansorg <jockel123 () gmx ! de>
Date:       2000-07-04 13:05:55
[Download RAW message or body]

I found it very annoying that KDevelop didn't changed the KDEDIR environment 
variable on startup of an application.
The result was that KDE2 apps with enable i18n (e.g. German) used the 
translations of KDE1 (the old KDEDIR variable). The files of KDE1 are not 
UTF8 so the menus, widgets etc. in the KDE2 apps showed strange characters in 
the captions, entries etc.

My small patch does fix this problem, it's sets the KDEDIR variable only for 
the started app.

Could somebody with CVS access please apply the fix?
My patch shouldn't break something (confg group is restored).


--Joachim
["ckdevelop.patch" (text/plain)]

--- 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;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic