Bug 60988 - r++ does not complete until path is created
Summary: r++ does not complete until path is created
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-09 14:52 UTC by Robert Jonsson
Modified: 2003-07-25 21:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/") ){