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) (show 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
@@ -243,49 +243,49 @@ void NetworkPackageManager :: downloadPackage()
dir = cfg.readEntry( "downloadDir", "/home/root/Documents/application/ipkg" );
#endif
QString text = InputDialog::getText( tr( "Download to where" ), tr( "Enter path to download to" ), dir, &ok, this );
if ( ok && !text.isEmpty() )
dir = text; // user entered something and pressed ok
else
return; // user entered nothing or pressed cancel
#ifdef QWS
// Store download directory in config file
cfg.writeEntry( "downloadDir", dir );
#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 );
ipkg.setPackage( name );
ipkg.runIpkg( );
}
item = (QCheckListItem *)item->nextSibling();
} while ( item );
}
else if ( download->text() == "Remove" )
{
QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
do