forked from len0rd/rockbox
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
This commit is contained in:
parent
92882f2a25
commit
87d2590bab
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info,
|
||||||
customUI = false;
|
customUI = false;
|
||||||
font = screen->getFont(1);
|
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(info.model()->rowCount(QModelIndex()) > 1)
|
||||||
{
|
{
|
||||||
/* If there is more than one viewport in the document */
|
/* If there is more than one viewport in the document */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue