From 87d2590bab021d0686cebdf0a105ecaf79651809 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 6 Aug 2010 08:01:07 +0000 Subject: Theme Editor: Made default viewport non-interactive in skin preview. Selecting and resizing the default viewport was causing lockups and segfaults git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27736 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbviewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 3b97e7143d..2c6fb9d7c3 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -56,6 +56,10 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info, customUI = false; font = screen->getFont(1); + /* Making sure the default viewport can't be graphically manipulated */ + setFlag(ItemIsSelectable, false); + setFlag(ItemIsMovable, false); + if(info.model()->rowCount(QModelIndex()) > 1) { /* If there is more than one viewport in the document */ -- cgit v1.2.3