Diffstat (limited to 'noncore/unsupported/oipkg/packagelistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/unsupported/oipkg/packagelistview.cpp b/noncore/unsupported/oipkg/packagelistview.cpp index 70aa48a..2bb74e9 100644 --- a/noncore/unsupported/oipkg/packagelistview.cpp +++ b/noncore/unsupported/oipkg/packagelistview.cpp | |||
@@ -56,13 +56,13 @@ void PackageListView::showPopup() | |||
56 | popupMenu->clear(); | 56 | popupMenu->clear(); |
57 | destsMenu->clear(); | 57 | destsMenu->clear(); |
58 | 58 | ||
59 | QAction *popupAction; | 59 | QAction *popupAction; |
60 | if ( !activePackage->installed() ) | 60 | if ( !activePackage->installed() ) |
61 | { | 61 | { |
62 | popupMenu->insertItem( QObject::tr("Install to"), destsMenu ); | 62 | popupMenu->insertItem( tr("Install to"), destsMenu ); |
63 | QStringList dests = settings->getDestinationNames(); | 63 | QStringList dests = settings->getDestinationNames(); |
64 | QString ad = settings->getDestinationName(); | 64 | QString ad = settings->getDestinationName(); |
65 | for (uint i = 0; i < dests.count(); i++ ) | 65 | for (uint i = 0; i < dests.count(); i++ ) |
66 | { | 66 | { |
67 | popupAction = new QAction( dests[i], QString::null, 0, this, 0 ); | 67 | popupAction = new QAction( dests[i], QString::null, 0, this, 0 ); |
68 | popupAction->addTo( destsMenu ); | 68 | popupAction->addTo( destsMenu ); |
@@ -72,17 +72,17 @@ void PackageListView::showPopup() | |||
72 | popupAction->setOn(true); | 72 | popupAction->setOn(true); |
73 | }; | 73 | }; |
74 | } | 74 | } |
75 | connect( destsMenu, SIGNAL( activated( int ) ), | 75 | connect( destsMenu, SIGNAL( activated( int ) ), |
76 | this, SLOT( changePackageDest( int ) ) ); | 76 | this, SLOT( changePackageDest( int ) ) ); |
77 | }else{ | 77 | }else{ |
78 | popupAction = new QAction( QObject::tr("Remove"),QString::null, 0, this, 0 ); | 78 | popupAction = new QAction( tr("Remove"),QString::null, 0, this, 0 ); |
79 | popupAction->addTo( popupMenu ); | 79 | popupAction->addTo( popupMenu ); |
80 | connect( popupAction, SIGNAL( activated() ), | 80 | connect( popupAction, SIGNAL( activated() ), |
81 | this , SLOT( toggleProcess() ) ); | 81 | this , SLOT( toggleProcess() ) ); |
82 | popupAction = new QAction( QObject::tr("Reinstall"),QString::null, 0, this, 0 ); | 82 | popupAction = new QAction( tr("Reinstall"),QString::null, 0, this, 0 ); |
83 | popupAction->addTo( popupMenu ); | 83 | popupAction->addTo( popupMenu ); |
84 | popupAction->setEnabled( false ); | 84 | popupAction->setEnabled( false ); |
85 | } | 85 | } |
86 | popupMenu->popup( QCursor::pos() ); | 86 | popupMenu->popup( QCursor::pos() ); |
87 | } | 87 | } |
88 | 88 | ||