From abc785efcc6d78ca52f1f488653ff51d2b3d8d2f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 9 Mar 2018 10:03:25 -0500 Subject: [PATCH] slight rejiggering --- simpledisplay.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index 0bd147a..ffc4992 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -1845,7 +1845,7 @@ class SimpleWindow : CapableOfHandlingNativeEvent, CapableOfBeingDrawnUpon { /// Gets the title @property string title() { if(_title is null) - _title = impl.getTitle(); + _title = getRealTitle(); return _title; } @@ -1856,7 +1856,8 @@ class SimpleWindow : CapableOfHandlingNativeEvent, CapableOfBeingDrawnUpon { string getRealTitle() { static if(is(typeof(impl.getTitle()))) return impl.getTitle(); - return null; + else + return null; } /// Set the icon that is seen in the title bar or taskbar, etc., for the user.