mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
use rz_str_gittip
This commit is contained in:
parent
e0e754a3b9
commit
d876ac6e7d
@ -4299,7 +4299,11 @@ void CutterCore::loadScript(const QString &scriptname)
|
||||
|
||||
QString CutterCore::getRizinVersionReadable()
|
||||
{
|
||||
return QString::fromUtf8(RZ_VERSION);
|
||||
char *gittip_str = rz_str_gittip();
|
||||
auto gittip = QString::fromUtf8(gittip_str).left(7);
|
||||
free(gittip_str);
|
||||
auto version = QString::fromUtf8(RZ_VERSION);
|
||||
return QString("%1 (%2)").arg(version, gittip);
|
||||
}
|
||||
|
||||
QString CutterCore::getVersionInformation()
|
||||
|
Loading…
Reference in New Issue
Block a user