Remove debugger call. This assert is to early because the desktop is locked later in the LockedDesktopSettings sub class. Fix bug #6392.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37909 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-08-04 21:40:43 +00:00
parent 34a79bff8a
commit 2be8427e01

View File

@ -738,11 +738,7 @@ DesktopSettings::DesktopSettings(Desktop* desktop)
:
fSettings(desktop->fSettings)
{
#if DEBUG
if (!desktop->fWindowLock.IsWriteLocked()
&& !desktop->fWindowLock.IsReadLocked())
debugger("desktop not locked when trying to access settings");
#endif
}
@ -883,7 +879,8 @@ DesktopSettings::IsSubpixelOrderingRegular() const
LockedDesktopSettings::LockedDesktopSettings(Desktop* desktop)
: DesktopSettings(desktop),
:
DesktopSettings(desktop),
fDesktop(desktop)
{
#if DEBUG