From 467c6631fa0735954efce00f3c5d268565dce28f Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Tue, 2 Dec 2014 18:36:35 -0600
Subject: Fix crash under Milk style

---
 style/qtcurve.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/style/qtcurve.cpp b/style/qtcurve.cpp
index 5f95f66..9f06adb 100644
--- a/style/qtcurve.cpp
+++ b/style/qtcurve.cpp
@@ -8106,7 +8106,7 @@ const TQColor * QtCurveStyle::getMdiColors(const TQColorGroup &cg, bool active)
             }
         }
 
-        if(opts.shadeMenubarOnlyWhenActive && SHADE_WINDOW_BORDER==opts.shadeMenubars &&
+        if(itsMdiColors && opts.shadeMenubarOnlyWhenActive && SHADE_WINDOW_BORDER==opts.shadeMenubars &&
            itsActiveMdiColors[ORIGINAL_SHADE]==itsMdiColors[ORIGINAL_SHADE])
             opts.shadeMenubarOnlyWhenActive=false;
 
-- 
cgit v1.2.3

