From 9163bfcc25b78477a75a153f2a75be30ad297c6a Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 20 Apr 2003 23:58:21 +0000 Subject: Finally fixed it so that packages are not incorrectly marked as having an update available --- (limited to 'noncore/settings/aqpkg/mainwin.cpp') diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 6ea619c..fb40d52 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp @@ -639,8 +639,7 @@ void MainWindow :: serverSelected( int, bool raiseProgress ) // Apply show only new installed packages filter if ( showUpgradedPkgs ) { - if ( !package->isInstalled() || - compareVersions( package->getInstalledVersion(), package->getVersion() ) != 1 ) + if ( !package->isInstalled() || !package->getNewVersionAvailable() ) continue; } @@ -663,8 +662,7 @@ void MainWindow :: serverSelected( int, bool raiseProgress ) { // If a different version of package is available, show update available icon // Otherwise, show installed icon - if ( package->getVersion() != package->getInstalledVersion() && - compareVersions( package->getInstalledVersion(), package->getVersion() ) == 1) + if ( package->getNewVersionAvailable()) { item->setPixmap( 0, updatedIcon ); -- cgit v0.9.0.2