Commit 2254e75d authored by Christian Loose's avatar Christian Loose
Browse files

Reading the configuration file is handled by RepositoryDialog

svn path=/trunk/kdesdk/cervisia/; revision=196242
parent 27df701f
......@@ -64,9 +64,6 @@ AddRepositoryDialog::AddRepositoryDialog(const QString &repo, QWidget *parent, c
(void) new QRadioButton(i18n("2"), compression_group);
(void) new QRadioButton(i18n("3"), compression_group);
// open cvs DCOP service configuration file
serviceConfig = new KConfig("cvsservicerc");
connect( repo_edit, SIGNAL(textChanged(const QString&)),
this, SLOT(repoChanged()) );
repoChanged();
......@@ -81,8 +78,6 @@ AddRepositoryDialog::~AddRepositoryDialog()
if (!options)
options = new Options;
options->size = size();
delete serviceConfig;
}
......@@ -151,12 +146,6 @@ void AddRepositoryDialog::repoChanged()
rsh_edit->setEnabled((!repo.startsWith(":pserver:"))
&& repo.contains(":"));
compression_group->setEnabled(repo.contains(":"));
// read compression level from cvs DCOP service configuration
serviceConfig->setGroup(QString::fromLatin1("Repository-") + repo);
int n = serviceConfig->readNumEntry("Compression", -1);
compression_group->setButton(n+1);
}
#include "addrepositorydlg.moc"
......
......@@ -54,8 +54,6 @@ private:
KLineEdit *repo_edit;
KLineEdit *rsh_edit;
QButtonGroup *compression_group;
KConfig* serviceConfig;
};
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment