Bug 60988

Summary: r++ does not complete until path is created
Product: [Applications] kdevelop Reporter: Robert Jonsson <rj>
Component: Language Support: CPP (old)Assignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robert Jonsson 2003-07-09 14:52:13 UTC
Version:           3.0.0a5 (using KDE 3.1.2)
Compiler:          gcc version 3.3 (Mandrake Linux 9.2 3.3-2mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

r++ should create the path
~/.kde/share/apps/kdevcppsupport/pcs/ if it does not exist.
Comment 1 Alexander Dymo 2003-07-25 21:38:10 UTC
Subject: kdevelop/parts/cppsupport

CVS commit by dymo: 

create pcs path if it isn't exists
CCMAIL: 60988-done@bugs.kde.org


  M +5 -0      main.cpp   1.18


--- kdevelop/parts/cppsupport/main.cpp  #1.17:1.18
@@ -209,4 +209,9 @@ int main( int argc, char* argv[] )
 
     QString datadir = stddir.localkdedir() + "/" + KStandardDirs::kde_default( "data" );
+    if (! KStandardDirs::makeDir(datadir + "/kdevcppsupport/pcs/")){
+        std::cerr << "*error* " << "could not create " << datadir + "/kdevcppsupport/pcs/" << std::endl << std::endl;
+        return -1;
+    }
+
 
     if( !QFile::exists(datadir + "/kdevcppsupport/pcs/") ){