From d5021ca9563d19c15c9aa63e4b092f25cee9beb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 9 Jan 2012 23:07:22 +0100 Subject: [PATCH] Don't read properties if compiling the script failed --- clients/aurorae/src/aurorae.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index 78fdf3753a..66176e75b9 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -217,6 +217,10 @@ void AuroraeClient::shadeChange() void AuroraeClient::borders(int &left, int &right, int &top, int &bottom) const { + if (m_view->status() == QDeclarativeView::Error) { + left = right = top = bottom = 0; + return; + } const bool maximized = maximizeMode() == MaximizeFull && !options()->moveResizeMaximizedWindows(); if (maximized) { left = m_view->rootObject()->property("borderLeftMaximized").toInt(); @@ -233,6 +237,10 @@ void AuroraeClient::borders(int &left, int &right, int &top, int &bottom) const void AuroraeClient::padding(int &left, int &right, int &top, int &bottom) const { + if (m_view->status() == QDeclarativeView::Error) { + left = right = top = bottom = 0; + return; + } left = m_view->rootObject()->property("paddingLeft").toInt(); right = m_view->rootObject()->property("paddingRight").toInt(); top = m_view->rootObject()->property("paddingTop").toInt();