summaryrefslogtreecommitdiff
authortille <tille>2002-07-24 11:49:21 (UTC)
committer tille <tille>2002-07-24 11:49:21 (UTC)
commit919228ff6aeb72b6d2585ae108e86d27d0b6bdb1 (patch) (side-by-side diff)
tree329dae48711cda4d05b0e7c02ae3a329b80606ff
parentadfb21cd5e2fcf750543570ab9c6427f1fba9968 (diff)
downloadopie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.zip
opie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.tar.gz
opie-919228ff6aeb72b6d2585ae108e86d27d0b6bdb1.tar.bz2
hopeing to fix bug #119
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index 11c0f97..7682d49 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -166,7 +166,7 @@ void PmIpkg::linkPackage( QString packFileName, QString dest )
void PmIpkg::processFileList( QStringList *fileList, QString d )
{
- if (!fileList) return;
+ if (!fileList || fileList->isEmpty()) return;
for (uint i=0; i < fileList->count(); i++)
{
QString dest = settings->getDestinationUrlByName( d );
@@ -292,7 +292,7 @@ void PmIpkg::remove()
QStringList *fileList;
for (uint i=0; i < to_remove.count(); i++)
{
- if ( to_remove.at(i)->link() )fileList = getList( to_remove.at(i)->name(), to_remove.at(i)->dest() );
+ if ( to_remove.at(i)->link() ) fileList = getList( to_remove.at(i)->name(), to_remove.at(i)->dest() );
if ( runIpkg("remove " + to_remove.at(i)->installName(), to_remove.at(i)->dest() ))
{
runwindow->progress->setProgress( 1 );