hrev54282 adds 1 changeset to branch 'master'
old head: 50c7fbacb736a05dfc8306160e065f174cf34d1b
new head: 6178aeb315962fd92fb8b0bbbae7e075570aaa30
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=6178aeb31596+%5E50c7fbacb736
----------------------------------------------------------------------------
6178aeb31596: HaikuDepot: Contents for Local Pkg
Enables the content tab for showing contents of
on-disk, but not yet installed package.
Resolves #16161
Change-Id: I5e4764cf3e9f1e46eafb3d98917a357fece854dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2853
Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>
[ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev54282
Commit: 6178aeb315962fd92fb8b0bbbae7e075570aaa30
URL: https://git.haiku-os.org/haiku/commit/?id=6178aeb31596
Author: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date: Sun May 31 03:29:03 2020 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Mon Jun 1 00:32:16 2020 UTC
Ticket: https://dev.haiku-os.org/ticket/16161
----------------------------------------------------------------------------
1 file changed, 2 insertions(+), 1 deletion(-)
src/apps/haikudepot/ui/PackageInfoView.cpp | 3 ++-
----------------------------------------------------------------------------
diff --git a/src/apps/haikudepot/ui/PackageInfoView.cpp
b/src/apps/haikudepot/ui/PackageInfoView.cpp
index 8816593f42..f45b0b291c 100644
--- a/src/apps/haikudepot/ui/PackageInfoView.cpp
+++ b/src/apps/haikudepot/ui/PackageInfoView.cpp
@@ -1251,7 +1251,8 @@ public:
TabAt(TAB_CHANGELOG)->SetEnabled(
package.Get() != NULL && package->HasChangelog());
TabAt(TAB_CONTENTS)->SetEnabled(
- package.Get() != NULL && package->State() == ACTIVATED);
+ package.Get() != NULL
+ && (package->State() == ACTIVATED ||
package->IsLocalFile()));
Invalidate(TabFrame(TAB_CHANGELOG));
Invalidate(TabFrame(TAB_CONTENTS));