diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 08:01:07 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 08:01:07 +0000 |
commit | 87d2590bab021d0686cebdf0a105ecaf79651809 (patch) | |
tree | 9f58a53e233444e6205897f8c5bcd0304a9be4c3 | |
parent | 92882f2a25e10095fb21ac0ef036e08d810b8754 (diff) | |
download | rockbox-87d2590bab021d0686cebdf0a105ecaf79651809.tar.gz rockbox-87d2590bab021d0686cebdf0a105ecaf79651809.zip |
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
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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, | |||
56 | customUI = false; | 56 | customUI = false; |
57 | font = screen->getFont(1); | 57 | font = screen->getFont(1); |
58 | 58 | ||
59 | /* Making sure the default viewport can't be graphically manipulated */ | ||
60 | setFlag(ItemIsSelectable, false); | ||
61 | setFlag(ItemIsMovable, false); | ||
62 | |||
59 | if(info.model()->rowCount(QModelIndex()) > 1) | 63 | if(info.model()->rowCount(QModelIndex()) > 1) |
60 | { | 64 | { |
61 | /* If there is more than one viewport in the document */ | 65 | /* If there is more than one viewport in the document */ |