Summary: | Can not create new repository / wrong command created | ||
---|---|---|---|
Product: | [Applications] cervisia | Reporter: | Martin Koller <kollix> |
Component: | general | Assignee: | Christian Loose <christian.loose> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Martin Koller
2004-08-23 12:16:55 UTC
CVS commit by cloose: Fix bug #87830: Always read the cvs client option from the configuration file even when there is no sandbox open. CCMAIL: 87830-done@bugs.kde.org M +6 -0 ChangeLog 1.135.2.1 M +14 -4 cvsservice/repository.cpp 1.16.2.1 --- kdesdk/cervisia/cvsservice/repository.cpp #1.16:1.16.2.1 @@ -49,4 +49,5 @@ struct Repository::Private void readConfig(); + void readGeneralConfig(); }; @@ -58,4 +59,6 @@ Repository::Repository() , d(new Private) { + d->readGeneralConfig(); + // other cvsservice instances might change the configuration file // so we watch it for changes @@ -74,4 +77,5 @@ Repository::Repository(const QString& re { d->location = repository; + d->readGeneralConfig(); d->readConfig(); @@ -196,4 +200,14 @@ void Repository::slotConfigDirty(const Q +void Repository::Private::readGeneralConfig() +{ + KConfig* config = kapp->config(); + + // get path to cvs client programm + config->setGroup("General"); + client = config->readPathEntry("CVSPath", "cvs"); +} + + void Repository::Private::readConfig() { @@ -245,8 +259,4 @@ void Repository::Private::readConfig() // get program to start on the server side server = config->readEntry("cvs_server"); - - // get path to cvs client programm - config->setGroup("General"); - client = config->readPathEntry("CVSPath", "cvs"); } --- kdesdk/cervisia/ChangeLog #1.135:1.135.2.1 @@ -1,2 +1,8 @@ +2004-08-23 Christian Loose <christian.loose@kdemail.net> + + * Fix bug #87830: + Always read the cvs client option from the configuration + file even when there is no sandbox open. + 2004-07-13 Andr |