diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-09 11:56:28 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-09 11:56:28 +0100 |
commit | ce9b9c129db9bb9b2733f691387b72e63e6d7b9d (patch) | |
tree | d502a0d5dc017c8275a4622431cac0abbec3aa0d | |
parent | e3d975e94390664807c2793aa2b91b6bbeff064c (diff) | |
download | serenity-ce9b9c129db9bb9b2733f691387b72e63e6d7b9d.zip |
LibGUI: Include internal_data() in GModelIndex LogStream output
-rw-r--r-- | Libraries/LibGUI/GModelIndex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GModelIndex.h b/Libraries/LibGUI/GModelIndex.h index ef9b558c74..7bb417385d 100644 --- a/Libraries/LibGUI/GModelIndex.h +++ b/Libraries/LibGUI/GModelIndex.h @@ -46,6 +46,8 @@ private: inline const LogStream& operator<<(const LogStream& stream, const GModelIndex& value) { + if (value.internal_data()) + return stream << String::format("GModelIndex(%d,%d,%p)", value.row(), value.column(), value.internal_data()); return stream << String::format("GModelIndex(%d,%d)", value.row(), value.column()); } |