Commit b5e276d1 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊 Committed by Nate Graham
Browse files

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

BUG: 437539

(cherry picked from commit 879fa9fa)
parent 536d9129
......@@ -229,11 +229,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