mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-20 19:38:49 +00:00
Update HexWidget.cpp
This commit is contained in:
parent
8ddf4c0194
commit
db4f556f42
@ -226,11 +226,6 @@ HexWidget::HexWidget(QWidget *parent)
|
|||||||
connect(&warningTimer, &QTimer::timeout, this, &HexWidget::hideWarningRect);
|
connect(&warningTimer, &QTimer::timeout, this, &HexWidget::hideWarningRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget *HexWidget::parentForDialog()
|
|
||||||
{
|
|
||||||
return parentWidget();
|
|
||||||
}
|
|
||||||
|
|
||||||
void HexWidget::setMonospaceFont(const QFont &font)
|
void HexWidget::setMonospaceFont(const QFont &font)
|
||||||
{
|
{
|
||||||
if (!(font.styleHint() & QFont::Monospace)) {
|
if (!(font.styleHint() & QFont::Monospace)) {
|
||||||
@ -1177,10 +1172,10 @@ void HexWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
actionComment->setText(tr("Edit Comment"));
|
actionComment->setText(tr("Edit Comment"));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString flag = Core()->flagAt(cursor.address);
|
auto coreLock = Core()->core();
|
||||||
RzFlagItem *flagItem = rz_flag_get_i(Core()->core()->flags, cursor.address);
|
RZFlagItem *flagItem = rz_flag_get_i(coreLock->flags, cursor.address);
|
||||||
|
|
||||||
if (flagItem == 0x0 || flag.isNull() || flag.isEmpty()) {
|
if (flagItem == 0x0) {
|
||||||
actionDeleteFlag->setVisible(false);
|
actionDeleteFlag->setVisible(false);
|
||||||
actionFlag->setText(tr("Add Flag"));
|
actionFlag->setText(tr("Add Flag"));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user