mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
Fix #323
This commit is contained in:
parent
742cddf543
commit
5d1bf80b5b
@ -117,7 +117,7 @@ struct StringDescription
|
|||||||
{
|
{
|
||||||
RVA vaddr;
|
RVA vaddr;
|
||||||
QString string;
|
QString string;
|
||||||
char type;
|
QString type;
|
||||||
ut32 length;
|
ut32 length;
|
||||||
ut32 size;
|
ut32 size;
|
||||||
};
|
};
|
||||||
|
@ -41,7 +41,12 @@ QVariant StringsModel::data(const QModelIndex &index, int role) const
|
|||||||
case STRING:
|
case STRING:
|
||||||
return str.string;
|
return str.string;
|
||||||
case TYPE:
|
case TYPE:
|
||||||
return str.type;
|
if (str.type == "a")
|
||||||
|
return "ASCII";
|
||||||
|
else if (str.type == "u")
|
||||||
|
return "UTF-8";
|
||||||
|
else
|
||||||
|
return str.type;
|
||||||
case LENGTH:
|
case LENGTH:
|
||||||
return str.length;
|
return str.length;
|
||||||
case SIZE:
|
case SIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user