|
|
|
@ -130,7 +130,7 @@ bool Manager::removeTemplate(const TQString& name_) {
|
|
|
|
|
|
|
|
|
|
// remove config entries even if unsuccessful
|
|
|
|
|
fileGroup.deleteEntry(name_);
|
|
|
|
|
KConfigGroup statusGroup(KGlobal::config(), "KNewStufftqStatus");
|
|
|
|
|
KConfigGroup statusGroup(KGlobal::config(), "KNewStuffStatus");
|
|
|
|
|
TQString entryName = statusGroup.readEntry(name_);
|
|
|
|
|
statusGroup.deleteEntry(name_);
|
|
|
|
|
statusGroup.deleteEntry(entryName);
|
|
|
|
@ -244,7 +244,7 @@ bool Manager::removeScript(const TQString& name_) {
|
|
|
|
|
|
|
|
|
|
// remove config entries even if unsuccessful
|
|
|
|
|
fileGroup.deleteEntry(name_);
|
|
|
|
|
KConfigGroup statusGroup(KGlobal::config(), "KNewStufftqStatus");
|
|
|
|
|
KConfigGroup statusGroup(KGlobal::config(), "KNewStuffStatus");
|
|
|
|
|
TQString entryName = statusGroup.readEntry(name_);
|
|
|
|
|
statusGroup.deleteEntry(name_);
|
|
|
|
|
statusGroup.deleteEntry(entryName);
|
|
|
|
@ -253,7 +253,7 @@ bool Manager::removeScript(const TQString& name_) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Tellico::NewStuff::InstalltqStatus Manager::installtqStatus(KNS::Entry* entry_) {
|
|
|
|
|
KConfigGroup config(KGlobal::config(), "KNewStufftqStatus");
|
|
|
|
|
KConfigGroup config(KGlobal::config(), "KNewStuffStatus");
|
|
|
|
|
TQString datestring = config.readEntry(entry_->name());
|
|
|
|
|
if(datestring.isEmpty()) {
|
|
|
|
|
return NotInstalled;
|
|
|
|
@ -394,7 +394,7 @@ void Manager::slotInstallFinished() {
|
|
|
|
|
if(newScript && newScript->successfulInstall()) {
|
|
|
|
|
const TQString name = m_urlNameMap[newScript->url()];
|
|
|
|
|
KNS::Entry* entry = m_scriptEntryMap[newScript];
|
|
|
|
|
KConfigGroup config(KGlobal::config(), "KNewStufftqStatus");
|
|
|
|
|
KConfigGroup config(KGlobal::config(), "KNewStuffStatus");
|
|
|
|
|
// have to keep a config entry that maps the name of the file to the name
|
|
|
|
|
// of the newstuff entry, so we can track which entries are installed
|
|
|
|
|
// name and entry-name() are probably the same for scripts, but not a problem
|
|
|
|
|