From 592c0506175a7edf023882a69a88e5f356619622 Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Sun, 7 Jun 2020 11:39:58 +0300 Subject: [PATCH] Improve warning for multiple x-refs causing unexpected behavior (#2236) * Improve warning for multiple x-refs causing unexpected behavior --- src/common/CutterSeekable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/CutterSeekable.cpp b/src/common/CutterSeekable.cpp index 4efce17e..4a0648a7 100644 --- a/src/common/CutterSeekable.cpp +++ b/src/common/CutterSeekable.cpp @@ -75,7 +75,8 @@ void CutterSeekable::seekToReference(RVA offset) if (refs.length()) { if (refs.length() > 1) { - qWarning() << "Too many references here. Weird behaviour expected."; + qWarning() << tr("More than one (%1) references here. Weird behaviour expected.") + .arg(refs.length()); } target = refs.at(0).to; @@ -83,4 +84,4 @@ void CutterSeekable::seekToReference(RVA offset) seek(target); } } -} \ No newline at end of file +}