Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
f1366148
Commit
f1366148
authored
Oct 02, 2021
by
Alexander Semke
Browse files
Don't crash when calling the context menu of a rendered markdown entry.
parent
f796bb7b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/worksheetentry.cpp
View file @
f1366148
...
...
@@ -402,7 +402,10 @@ void WorksheetEntry::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
void
WorksheetEntry
::
populateMenu
(
QMenu
*
menu
,
QPointF
pos
)
{
auto
*
firstAction
=
menu
->
actions
().
first
();
QAction
*
firstAction
=
nullptr
;
if
(
!
menu
->
actions
().
isEmpty
())
//action() can be empty, s.a. WorksheetTextItem::populateMenu() where this function is called
firstAction
=
menu
->
actions
().
first
();
QAction
*
action
;
if
(
!
worksheet
()
->
isRunning
()
&&
wantToEvaluate
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment