Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM EventViews
Commits
0330ab1a
Commit
0330ab1a
authored
Sep 07, 2017
by
Laurent Montel
Browse files
Make sure that agenda is not null
CCBUG: 384324
parent
40da7ea3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/agenda/timelabels.cpp
View file @
0330ab1a
...
...
@@ -174,6 +174,9 @@ void TimeLabels::setAgenda(Agenda *agenda)
/** This is called in response to repaint() */
void
TimeLabels
::
paintEvent
(
QPaintEvent
*
)
{
if
(
!
mAgenda
)
{
return
;
}
QPainter
p
(
this
);
const
int
ch
=
height
();
...
...
src/agenda/timelabels.h
View file @
0330ab1a
...
...
@@ -87,10 +87,10 @@ private:
int
mRows
;
double
mCellHeight
;
int
mMiniWidth
;
Agenda
*
mAgenda
;
TimeLabelsZone
*
mTimeLabelsZone
;
Agenda
*
mAgenda
=
nullptr
;
TimeLabelsZone
*
mTimeLabelsZone
=
nullptr
;
QFrame
*
mMousePos
;
// shows a marker for the current mouse position in y direction
QFrame
*
mMousePos
=
nullptr
;
// shows a marker for the current mouse position in y direction
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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