From 919228ff6aeb72b6d2585ae108e86d27d0b6bdb1 Mon Sep 17 00:00:00 2001 From: tille Date: Wed, 24 Jul 2002 11:49:21 +0000 Subject: hopeing to fix bug #119 --- (limited to 'noncore') 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 ); -- cgit v0.9.0.2