author | tille <tille> | 2002-09-03 18:35:54 (UTC) |
---|---|---|
committer | tille <tille> | 2002-09-03 18:35:54 (UTC) |
commit | 6e4c5aebd3d2a7203480e5f408358c677203f9ca (patch) (unidiff) | |
tree | 57df19225fd14d00763669a889d4c816f9f68a38 /noncore/unsupported/oipkg/pksettings.cpp | |
parent | ed440196145aec276620b45d7a56400f27eabc82 (diff) | |
download | opie-6e4c5aebd3d2a7203480e5f408358c677203f9ca.zip opie-6e4c5aebd3d2a7203480e5f408358c677203f9ca.tar.gz opie-6e4c5aebd3d2a7203480e5f408358c677203f9ca.tar.bz2 |
should fix #180
Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp index acabaed..063b018 100644 --- a/noncore/unsupported/oipkg/pksettings.cpp +++ b/noncore/unsupported/oipkg/pksettings.cpp | |||
@@ -218,30 +218,29 @@ void PackageManagerSettings::serverUrlChanged(const QString& t) | |||
218 | 218 | ||
219 | void PackageManagerSettings::destUrlChanged(const QString& t) | 219 | void PackageManagerSettings::destUrlChanged(const QString& t) |
220 | { | 220 | { |
221 | destinationurlDic.replace(editeddestination, new QString(t)); | 221 | destinationurlDic.replace(editeddestination, new QString(t)); |
222 | changed = true; | 222 | changed = true; |
223 | } | 223 | } |
224 | 224 | ||
225 | void PackageManagerSettings::writeIpkgConfig(const QString& conffile) | 225 | void PackageManagerSettings::writeIpkgConfig(const QString& conffile) |
226 | { | 226 | { |
227 | QFile conf(conffile); | 227 | QFile conf(conffile); |
228 | if ( ! conf.open(IO_WriteOnly) ) return; | 228 | if ( ! conf.open(IO_WriteOnly) ) return; |
229 | QTextStream s(&conf); | 229 | QTextStream s(&conf); |
230 | s << "# Written by qpie Package Manager\n"; | 230 | s << "# Written by oipkg -- the opie package manager\n"; |
231 | for (int i=0; i<(int)activeServers->count(); i++) | 231 | for (int i=0; i<(int)activeServers->count(); i++) |
232 | { | 232 | { |
233 | QString url = serverurlDic[i] ? *serverurlDic[i] : QString("???"); | 233 | QString url = serverurlDic[i] ? *serverurlDic[i] : QString("???"); |
234 | if ( !activeServers->isSelected(i) ) | 234 | if ( !activeServers->isSelected(i) ) s << "#"; |
235 | s << "#"; | ||
236 | s << "src " << activeServers->text(i) << " " << url << "\n"; | 235 | s << "src " << activeServers->text(i) << " " << url << "\n"; |
237 | } | 236 | } |
238 | for (int i=0; i<(int)destinations->count(); i++) | 237 | for (int i=0; i<(int)destinations->count(); i++) |
239 | { | 238 | { |
240 | QString url = destinationurlDic[i] ? *destinationurlDic[i] : QString("???"); | 239 | QString url = destinationurlDic[i] ? *destinationurlDic[i] : QString("???"); |
241 | s << "dest " << destinations->text(i) << " " << url << "\n"; | 240 | s << "dest " << destinations->text(i) << " " << url << "\n"; |
242 | } | 241 | } |
243 | conf.close(); | 242 | conf.close(); |
244 | } | 243 | } |
245 | 244 | ||
246 | 245 | ||
247 | void PackageManagerSettings::readInstallationSettings() | 246 | void PackageManagerSettings::readInstallationSettings() |