Cppcheck warning.
--HG-- branch : develop
This commit is contained in:
parent
7e064f80c5
commit
f0bceec6ea
|
@ -3989,9 +3989,9 @@ void MainWindow::CreateActions()
|
|||
QAction *action = new QAction(this);
|
||||
action->setVisible(false);
|
||||
recentFileActs[i] = action;
|
||||
connect(recentFileActs[i], &QAction::triggered, this, [action, this]()
|
||||
connect(recentFileActs[i], &QAction::triggered, this, [this]()
|
||||
{
|
||||
if (action != nullptr)
|
||||
if (QAction *action = qobject_cast<QAction*>(sender()))
|
||||
{
|
||||
const QString filePath = action->data().toString();
|
||||
if (not filePath.isEmpty())
|
||||
|
|
Loading…
Reference in New Issue
Block a user