From kde-commits Tue Apr 08 12:27:29 2008 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 08 Apr 2008 12:27:29 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/pager Message-Id: <1207657649.409791.30392.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120765765713605 SVN commit 794714 by lunakl: Don't access uninitialized variable (the layout owner ptr). M +2 -2 pager.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #794713:794714 @@ -78,8 +78,6 @@ m_rows = m_desktopCount; } - recalculateGeometry(); - m_timer = new QTimer(this); m_timer->setSingleShot(true); connect(m_timer, SIGNAL(timeout()), this, SLOT(recalculateWindowRects())); @@ -100,6 +98,8 @@ if ( !m_desktopLayoutOwner->claim( false )) lostDesktopLayoutOwner(); + recalculateGeometry(); + m_currentDesktop = KWindowSystem::currentDesktop(); }