Skip to content

Commit

Permalink
fix hidding cd statistics in text only mode (bnc#864507)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 29, 2014
1 parent e472fe7 commit 5225f4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/packages/src/modules/SlideShow.rb
Expand Up @@ -611,7 +611,7 @@ def SwitchToSlideView
# Rebuild the details page.
def RebuildDetailsView
if UI.WidgetExists(:tabContents)
UI.ChangeWidget(:dumbTab, :CurrentItem, :showDetails)
UI.ChangeWidget(:dumbTab, :CurrentItem, :showDetails) if UI.WidgetExists(:dumbTab)
UI.ReplaceWidget(:tabContents, DetailsPageWidgets())
Builtins.y2milestone("Contents set to details")
end
Expand Down Expand Up @@ -716,8 +716,8 @@ def RebuildDialog
)
)
else
# no tabs
contents = DetailsPageWidgets()
# no tabs, but we need to modify hide cd statistics table, so add replace point
contents = ReplacePoint(Id(:tabContents), DetailsPageWidgets())
end

Builtins.y2milestone("SlideShow contents: %1", contents)
Expand Down

0 comments on commit 5225f4c

Please sign in to comment.