summaryrefslogtreecommitdiffstats
path: root/korganizer/timelabels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/timelabels.cpp')
-rw-r--r--korganizer/timelabels.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/timelabels.cpp b/korganizer/timelabels.cpp
index 792c270da..ab5967055 100644
--- a/korganizer/timelabels.cpp
+++ b/korganizer/timelabels.cpp
@@ -176,6 +176,11 @@ int TimeLabels::minimumWidth() const
/** updates widget's internal state */
void TimeLabels::updateConfig()
{
+ // Avoid crash on exit
+ if ( !mAgenda ) {
+ return;
+ }
+
setFont(KOPrefs::instance()->mTimeBarFont);
QString test = "20";