Warning--

This commit is contained in:
Montel Laurent 2011-04-30 13:17:26 +02:00
parent 9a6cf6f136
commit c0a47ae1dd

View file

@ -285,6 +285,7 @@ void StartupFeedbackEffect::gotNewStartup(const KStartupInfoId& id, const KStart
void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KStartupInfoData& data)
{
Q_UNUSED( data )
m_startups.remove(id);
if (m_startups.count() == 0) {
m_currentStartup = KStartupInfoId(); // null
@ -394,7 +395,7 @@ QRect StartupFeedbackEffect::feedbackRect() const
else
xDiff = 32 + 7;
int yDiff = xDiff;
GLTexture* texture;
GLTexture* texture = 0;
int yOffset = 0;
switch(m_type) {
case BouncingFeedback:
@ -410,7 +411,9 @@ QRect StartupFeedbackEffect::feedbackRect() const
break;
}
const QPoint cursorPos = effects->cursorPos() + QPoint(xDiff, yDiff + yOffset);
const QRect rect(cursorPos, texture->size());
QRect rect;
if( texture )
rect = QRect(cursorPos, texture->size());
return rect;
}