summaryrefslogtreecommitdiff
authortille <tille>2002-11-11 07:47:49 (UTC)
committer tille <tille>2002-11-11 07:47:49 (UTC)
commit204050f404a3cef4ff4f6920d24b16e03d8d6c5e (patch) (side-by-side diff)
treeaf46d63dde093a0fb834059e09df3f25d03e7970
parentcbafca79e0a7993f55c085ead8aaa30604cc646b (diff)
downloadopie-204050f404a3cef4ff4f6920d24b16e03d8d6c5e.zip
opie-204050f404a3cef4ff4f6920d24b16e03d8d6c5e.tar.gz
opie-204050f404a3cef4ff4f6920d24b16e03d8d6c5e.tar.bz2
bug fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp
index 4380393..51d024b 100644
--- a/noncore/unsupported/oipkg/packagelistitem.cpp
+++ b/noncore/unsupported/oipkg/packagelistitem.cpp
@@ -195,45 +195,45 @@ QPopupMenu* PackageListItem::getPopupMenu()
QAction *popupAction;
qDebug("PackageListItem::showPopup ");
if (!package->installed()){
popupMenu->insertItem( QObject::tr("Install to"), destsMenu );
QStringList dests = settings->getDestinationNames();
QString ad = settings->getDestinationName();
for (uint i = 0; i < dests.count(); i++ )
{
popupAction = new QAction( dests[i], QString::null, 0, popupMenu, 0 );
popupAction->addTo( destsMenu );
if ( dests[i] == ad && getPackage()->toInstall() )
{
popupAction->setToggleAction( true );
popupAction->setOn(true);
}
}
connect( destsMenu, SIGNAL( activated( int ) ),
this, SLOT( menuAction( int ) ) );
popupMenu->popup( QCursor::pos() );
}else{
popupMenu->insertItem( QObject::tr("Remove"));
connect( popupMenu, SIGNAL( activated( int ) ),
this, SLOT( menuAction( int ) ) );
popupMenu->popup( QCursor::pos() );
}
return popupMenu;
}
void PackageListItem::menuAction( int i )
{
- if (package->installed()){
+ if (!package->installed()){
package->setDest( destsMenu->text(i) );
package->setLink( settings->createLinks() );
}
package->setOn();
displayDetails();
}
//void PackageListItem::toggleProcess()
//{
// package->toggleProcess() ;
// displayDetails();
//} \ No newline at end of file