From 0eaeb24995cb19d3e516b5036c9a9964c7e78de6 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 29 Mar 2016 10:28:54 +0300 Subject: [PATCH] fix crash on theme change --- src/dlangide/ui/outputpanel.d | 2 +- src/dlangide/ui/searchPanel.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangide/ui/outputpanel.d b/src/dlangide/ui/outputpanel.d index 974fe72..8c8a77b 100644 --- a/src/dlangide/ui/outputpanel.d +++ b/src/dlangide/ui/outputpanel.d @@ -35,11 +35,11 @@ class CompilerLogWidget : LogWidget { /// handle theme change: e.g. reload some themed resources override void onThemeChanged() { + super.onThemeChanged(); _filenameColor = style.customColor("build_log_filename_color", 0x0000C0); _errorColor = style.customColor("build_log_error_color", 0xFF0000); _warningColor = style.customColor("build_log_warning_color", 0x606000); _deprecationColor = style.customColor("build_log_deprecation_color", 0x802040); - super.onThemeChanged(); } /** diff --git a/src/dlangide/ui/searchPanel.d b/src/dlangide/ui/searchPanel.d index 841d3ca..54c4813 100644 --- a/src/dlangide/ui/searchPanel.d +++ b/src/dlangide/ui/searchPanel.d @@ -38,11 +38,11 @@ class SearchLogWidget : LogWidget { /// handle theme change: e.g. reload some themed resources override void onThemeChanged() { + super.onThemeChanged(); _filenameColor = style.customColor("build_log_filename_color", 0x0000C0); _errorColor = style.customColor("build_log_error_color", 0xFF0000); _warningColor = style.customColor("build_log_warning_color", 0x606000); _deprecationColor = style.customColor("build_log_deprecation_color", 0x802040); - super.onThemeChanged(); } override protected CustomCharProps[] handleCustomLineHighlight(int line, dstring txt, ref CustomCharProps[] buf) {