Commit 879fa9fa authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

[src/settings/contextmenu/contextmenusettingspage] Fix Crash because of nullptr

BUG: 437539
parent 5fca9ee7
Pipeline #63049 passed with stage
in 4 minutes and 29 seconds
......@@ -235,11 +235,13 @@ void ContextMenuSettingsPage::showEvent(QShowEvent* event)
CopyToMoveToService,
ContextMenuSettings::showCopyMoveMenu());
// Add other built-in actions
for (const QString& id : m_actionIds) {
const QAction* action = m_actions->action(id);
if (action) {
addRow(action->icon().name(), action->text(), id, entryVisible(id));
if (m_actions){
// Add other built-in actions
for (const QString& id : m_actionIds) {
const QAction* action = m_actions->action(id);
if (action) {
addRow(action->icon().name(), action->text(), id, entryVisible(id));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment