Avoids a Qt warning internally

This commit is contained in:
Matthias Koefferlein 2023-03-08 22:37:56 +01:00
parent 35d9cdb656
commit 0253c25b30
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ PluginDeclaration::init_menu (lay::Dispatcher *dispatcher)
mp_editable_mode_action.reset (new Action (title));
#if defined(HAVE_QT)
gtf::action_connect (mp_editable_mode_action->qaction (), SIGNAL (triggered ()), this, SLOT (toggle_editable_enabled ()));
if (mp_editable_mode_action->qaction ()) {
gtf::action_connect (mp_editable_mode_action->qaction (), SIGNAL (triggered ()), this, SLOT (toggle_editable_enabled ()));
}
#endif
mp_editable_mode_action->set_checkable (true);
mp_editable_mode_action->set_checked (m_editable_enabled);