mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
7b0a1a98d9
commit
27bc48e06c
11 changed files with 116 additions and 109 deletions
|
@ -28,11 +28,10 @@
|
|||
#include "FormEditorWidget.h"
|
||||
#include "FormWidget.h"
|
||||
#include "WidgetTreeModel.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/LogStream.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
//#define DEBUG_CURSOR_TOOL
|
||||
|
||||
namespace HackStudio {
|
||||
|
||||
void CursorTool::on_mousedown(GUI::MouseEvent& event)
|
||||
|
@ -49,9 +48,7 @@ void CursorTool::on_mousedown(GUI::MouseEvent& event)
|
|||
m_editor.selection().toggle(*result.widget);
|
||||
} else if (!event.modifiers()) {
|
||||
if (!m_editor.selection().contains(*result.widget)) {
|
||||
#ifdef DEBUG_CURSOR_TOOL
|
||||
dbg() << "Selection didn't contain " << *result.widget << ", making it the only selected one";
|
||||
#endif
|
||||
dbgln<debug_cursor_tool>("Selection didn't contain {}, making it the only selected one", *result.widget);
|
||||
m_editor.selection().set(*result.widget);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue