From 1fbea627972c889e2bde686679d2fc315c9b83bb Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 29 Jun 2010 21:09:29 +0000 Subject: Theme Editor: Fixed conditional viewport display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27185 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbviewport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/graphics/rbviewport.cpp') diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 8fa05a2fc7..80ab5dce0b 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -69,7 +69,8 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) /* A preloaded viewport definition */ ident = node->params[0].data.text; customUI = false; - hide(); + if(!screen->viewPortDisplayed(ident)) + hide(); info.screen()->loadViewport(ident, this); param = 1; break; -- cgit