Ticket #11886: 0001-HaikuDepot-Update-content-tab-when-package-is-instal.patch

File 0001-HaikuDepot-Update-content-tab-when-package-is-instal.patch, 1.4 KB (added by TwoFx, 9 years ago)

Proposed patch

  • src/apps/haikudepot/ui/PackageContentsView.cpp

    From b3f48e23307e9840a1ee7c763d223f1cbde663ff Mon Sep 17 00:00:00 2001
    From: Markus Himmel <markus@himmel-villmar.de>
    Date: Sun, 26 Jul 2015 19:54:46 +0000
    Subject: [PATCH] HaikuDepot: Update content tab when package is installed
    
    This addresses #11886
    ---
     src/apps/haikudepot/ui/PackageContentsView.cpp | 2 --
     src/apps/haikudepot/ui/PackageInfoView.cpp     | 1 +
     2 files changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/src/apps/haikudepot/ui/PackageContentsView.cpp b/src/apps/haikudepot/ui/PackageContentsView.cpp
    index 6e6b08c..248cd61 100644
    a b PackageContentsView::AllAttached()  
    283283void
    284284PackageContentsView::SetPackage(const PackageInfoRef& package)
    285285{
    286     if (fPackage == package)
    287         return;
    288286
    289287//  printf("PackageContentsView::SetPackage(%s)\n",
    290288//      package.Get() != NULL ? package->Name().String() : "NULL");
  • src/apps/haikudepot/ui/PackageInfoView.cpp

    diff --git a/src/apps/haikudepot/ui/PackageInfoView.cpp b/src/apps/haikudepot/ui/PackageInfoView.cpp
    index 5d95ce4..e880473 100644
    a b PackageInfoView::MessageReceived(BMessage* message)  
    14271427
    14281428            if ((changes & PKG_CHANGED_STATE) != 0) {
    14291429                fPackageActionView->SetPackage(*package.Get());
     1430                fPagesView->SetPackage(package, false);
    14301431            }
    14311432
    14321433            break;