summaryrefslogtreecommitdiff
path: root/noncore/settings
Unidiff
Diffstat (limited to 'noncore/settings') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp
index ff8f182..06e2a03 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.cpp
+++ b/noncore/settings/aqpkg/networkpkgmgr.cpp
@@ -255,25 +255,25 @@ void NetworkPackageManager :: downloadPackage()
255#endif 255#endif
256 256
257 // Get starting directory 257 // Get starting directory
258 char initDir[PATH_MAX]; 258 char initDir[PATH_MAX];
259 getcwd( initDir, PATH_MAX ); 259 getcwd( initDir, PATH_MAX );
260 260
261 // Download each package 261 // Download each package
262 Ipkg ipkg; 262 Ipkg ipkg;
263 connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &))); 263 connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &)));
264 264
265 QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); 265 QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
266 ipkg.setOption( "download" ); 266 ipkg.setOption( "download" );
267 ipkg.setRuntimeDirectory( initDir ); 267 ipkg.setRuntimeDirectory( dir );
268 do 268 do
269 { 269 {
270 if ( item->isOn() ) 270 if ( item->isOn() )
271 { 271 {
272 QString name = item->text(); 272 QString name = item->text();
273 int pos = name.find( "*" ); 273 int pos = name.find( "*" );
274 name.truncate( pos ); 274 name.truncate( pos );
275 275
276 // if (there is a (installed), remove it 276 // if (there is a (installed), remove it
277 pos = name.find( "(installed)" ); 277 pos = name.find( "(installed)" );
278 if ( pos > 0 ) 278 if ( pos > 0 )
279 name.truncate( pos - 1 ); 279 name.truncate( pos - 1 );