summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-10 11:37:53 (UTC)
committer andyq <andyq>2002-10-10 11:37:53 (UTC)
commitcb2b407e2f58a73447d706de7c374bf275a96992 (patch) (side-by-side diff)
tree09947396489e780b50edc73a0047a075d3a7971f
parent0d81ca9a11acbe0fb4bb86c176293c119c92f0da (diff)
downloadopie-cb2b407e2f58a73447d706de7c374bf275a96992.zip
opie-cb2b407e2f58a73447d706de7c374bf275a96992.tar.gz
opie-cb2b407e2f58a73447d706de7c374bf275a96992.tar.bz2
Fixed bug with downloading package to selected location
Diffstat (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()
#endif
// Get starting directory
char initDir[PATH_MAX];
getcwd( initDir, PATH_MAX );
// Download each package
Ipkg ipkg;
connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &)));
QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
ipkg.setOption( "download" );
- ipkg.setRuntimeDirectory( initDir );
+ ipkg.setRuntimeDirectory( dir );
do
{
if ( item->isOn() )
{
QString name = item->text();
int pos = name.find( "*" );
name.truncate( pos );
// if (there is a (installed), remove it
pos = name.find( "(installed)" );
if ( pos > 0 )
name.truncate( pos - 1 );