Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index e8e2982..d9e62b6 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp | |||
@@ -279,44 +279,46 @@ void NetworkPackageManager :: serverSelected( int ) | |||
279 | destName = it->getLocalPackage()->getInstalledTo()->getDestinationName(); | 279 | destName = it->getLocalPackage()->getInstalledTo()->getDestinationName(); |
280 | } | 280 | } |
281 | else | 281 | else |
282 | { | 282 | { |
283 | if ( it->getInstalledTo() ) | 283 | if ( it->getInstalledTo() ) |
284 | destName = it->getInstalledTo()->getDestinationName(); | 284 | destName = it->getInstalledTo()->getDestinationName(); |
285 | } | 285 | } |
286 | if ( destName != "" ) | 286 | if ( destName != "" ) |
287 | new QCheckListItem( item, QString( "Installed To - " ) + destName ); | 287 | new QCheckListItem( item, QString( "Installed To - " ) + destName ); |
288 | } | 288 | } |
289 | 289 | ||
290 | if ( !it->isPackageStoredLocally() ) | 290 | if ( !it->isPackageStoredLocally() ) |
291 | { | ||
291 | new QCheckListItem( item, QString( "Description - " ) + it->getDescription() ); | 292 | new QCheckListItem( item, QString( "Description - " ) + it->getDescription() ); |
293 | new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() ); | ||
294 | new QCheckListItem( item, QString( "Section - " ) + it->getSection() ); | ||
295 | } | ||
292 | else | 296 | else |
293 | new QCheckListItem( item, QString( "Filename - " ) + it->getFilename() ); | 297 | new QCheckListItem( item, QString( "Filename - " ) + it->getFilename() ); |
294 | 298 | ||
295 | if ( serverName == LOCAL_SERVER ) | 299 | if ( serverName == LOCAL_SERVER ) |
296 | { | 300 | { |
297 | new QCheckListItem( item, QString( "V. Installed - " ) + it->getVersion() ); | 301 | new QCheckListItem( item, QString( "V. Installed - " ) + it->getVersion() ); |
298 | } | 302 | } |
299 | else | 303 | else |
300 | { | 304 | { |
301 | new QCheckListItem( item, QString( "V. Available - " ) + it->getVersion() ); | 305 | new QCheckListItem( item, QString( "V. Available - " ) + it->getVersion() ); |
302 | if ( it->getLocalPackage() ) | 306 | if ( it->getLocalPackage() ) |
303 | { | 307 | { |
304 | if ( it->isInstalled() ) | 308 | if ( it->isInstalled() ) |
305 | new QCheckListItem( item, QString( "V. Installed - " ) + it->getInstalledVersion() ); | 309 | new QCheckListItem( item, QString( "V. Installed - " ) + it->getInstalledVersion() ); |
306 | } | 310 | } |
307 | } | 311 | } |
308 | 312 | ||
309 | new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() ); | ||
310 | new QCheckListItem( item, QString( "Section - " ) + it->getSection() ); | ||
311 | packagesList->insertItem( item ); | 313 | packagesList->insertItem( item ); |
312 | } | 314 | } |
313 | 315 | ||
314 | // If the local server or the local ipkgs server disable the download button | 316 | // If the local server or the local ipkgs server disable the download button |
315 | if ( serverName == LOCAL_SERVER ) | 317 | if ( serverName == LOCAL_SERVER ) |
316 | { | 318 | { |
317 | upgrade->setEnabled( false ); | 319 | upgrade->setEnabled( false ); |
318 | download->setText( "Download" ); | 320 | download->setText( "Download" ); |
319 | download->setEnabled( true ); | 321 | download->setEnabled( true ); |
320 | } | 322 | } |
321 | else if ( serverName == LOCAL_IPKGS ) | 323 | else if ( serverName == LOCAL_IPKGS ) |
322 | { | 324 | { |