Patch for KDE doc path problem in setup wizard

Norman Jordan njordan at shaw.ca
Sat Sep 29 09:10:30 UTC 2001


Here is a patch for KDevelop 2.0.1 or CVS branch KDEVELOP_2_BRANCH.

--- kdevelop-2.0.1.orig/kdevelop/setup/wizardcreatekdedocpage.cpp
+++ kdevelop-2.0.1/kdevelop/setup/wizardcreatekdedocpage.cpp
@@ -65,7 +65,9 @@
 //    kde_dir->mkdir(".kde/share/apps/kdevelop",false);
 //    kde_dir->mkdir(".kde/share/apps/kdevelop/KDE-Documentation",false);
 
-    m_pInstallState->kde = docDir;
+    if(!QFile::exists(m_pInstallState->kde + "/kdeui/KDialog.html")) {
+      m_pInstallState->kde = docDir;
+    }
     CUpdateKDEDocDlg* pDlg = new CUpdateKDEDocDlg(m_pInstallState->shell_proces
s, docDir, m_pInstallState->qt, wdg, false, "test");
     vl->addWidget(pDlg);
     QObject::connect(pDlg, SIGNAL(newDocIsCreatedNow(const QString&)), SLOT(slo
tSetKDEDocPath(const QString&)) );

-- 
Norman Jordan <njordan at shaw.ca>
GnuPG public key available at http://rtfm.phpwebhosting.com/gnupg_key.txt
Fingerpring: 1024D/095918D0 807B A7C5 0D7D 81C0 C21F  1D36 775A C806 0959 18D0

-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list