HaikuDepot: Clear package info view if package not listed

If the visible packages list does not contain the currently showing package
anymore after filter parameters have changed, clear the package info area.
This also means that when installed packages are turned off, which means
a package will disappear from the list after being installed, the package
will no longer keep showing in the info area. This situation is less likely
with the change that installed packages will now show by default and the
user has to explicitly turn them off.
This commit is contained in:
Stephan Aßmus
2014-12-27 09:38:28 +01:00
parent 0c6df5d52e
commit 93a7cf94a3
+3
View File
@@ -653,6 +653,9 @@ MainWindow::_AdoptModel()
const PackageInfoRef& selectedPackage = fPackageInfoView->Package();
fFeaturedPackagesView->SelectPackage(selectedPackage);
fPackageListView->SelectPackage(selectedPackage);
if (!fVisiblePackages.Contains(fPackageInfoView->Package()))
fPackageInfoView->Clear();
}