config initialization

Patrick Spendrin ps_ml at gmx.de
Tue Nov 3 02:11:05 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As I am unsure who to ask about this issue I will send this mail to the
list:

In kdevelop/projectbuilders/cmakebuilder/cmakejob.cpp line 150ff the
following code can be found:

    KSharedConfig::Ptr cfg = project->projectConfiguration();
    KConfigGroup group(cfg.data(), "CMake");
    ...
    CMake::currentBuildType(project);
    ...

The function CMake::currentBuildType() and its brethren effectively need
the first two to initialize the project configuration file. When I
removed those two lines KDevelop wouldn't be able to *store* any
settings and would always tell me that the build directory hasn't been
set. In that function you can find the following code:

    KConfigGroup cmakeGrp = project->projectConfiguration()->group("CMake");
    return cmakeGrp.readEntry( currentBuildTypeKey, "Release" );

As I can't really tell apart those subtle differences, I wonder if you
could give me some more hints?
I know that this fix seems somehow academic, it needed me roughly a day
of work to track it down though, so I'd like to see it fixed.

regards,
Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkrvkTkACgkQi49rfdk/G3a/BwCfUR3pHiDM5XZ0WCInyKtzWvbU
tjoAnAs+eCa0X22CLh27HK+RxKFEVo9a
=F9YZ
-----END PGP SIGNATURE-----




More information about the KDevelop-devel mailing list