mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-20 19:38:49 +00:00
Fixed clang-format issue
This commit is contained in:
parent
f6b7172816
commit
8135faa8da
@ -146,8 +146,7 @@ HexWidget::HexWidget(QWidget *parent)
|
|||||||
// Delete flag option
|
// Delete flag option
|
||||||
actionDeleteFlag = new QAction(tr("Delete Flag"), this);
|
actionDeleteFlag = new QAction(tr("Delete Flag"), this);
|
||||||
actionDeleteFlag->setShortcutContext(Qt::ShortcutContext::WidgetWithChildrenShortcut);
|
actionDeleteFlag->setShortcutContext(Qt::ShortcutContext::WidgetWithChildrenShortcut);
|
||||||
connect(actionDeleteFlag, &QAction::triggered, this,
|
connect(actionDeleteFlag, &QAction::triggered, this, &HexWidget::onActionDeleteFlagTriggered);
|
||||||
&HexWidget::onActionDeleteFlagTriggered);
|
|
||||||
addAction(actionDeleteFlag);
|
addAction(actionDeleteFlag);
|
||||||
|
|
||||||
actionSelectRange = new QAction(tr("Select range"), this);
|
actionSelectRange = new QAction(tr("Select range"), this);
|
||||||
@ -1179,7 +1178,7 @@ void HexWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString flag = Core()->flagAt(cursor.address);
|
QString flag = Core()->flagAt(cursor.address);
|
||||||
RzFlagItem *flagItem = rz_flag_get_i(Core()->core()->flags, cursor.address);
|
RzFlagItem *flagItem = rz_flag_get_i(Core()->core()->flags, cursor.address);
|
||||||
|
|
||||||
if (flagItem == 0x0 || flag.isNull() || flag.isEmpty()) {
|
if (flagItem == 0x0 || flag.isNull() || flag.isEmpty()) {
|
||||||
actionDeleteFlag->setVisible(false);
|
actionDeleteFlag->setVisible(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user