ecere/gui/Window: Fix for getting title of Saving message box from rootWindow
authorJerome St-Louis <jerome@ecere.com>
Wed, 7 Mar 2012 14:31:40 +0000 (09:31 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 7 Mar 2012 14:31:40 +0000 (09:31 -0500)
ecere/src/gui/Window.ec

index f9bd289..ac4c6c6 100644 (file)
@@ -7119,7 +7119,7 @@ public:
          else
             sprintf(message, $"Save changes to Untitled %d?", documentID);
 
-         dialogRes = MessageBox { master = master, type = yesNoCancel, text = parent.caption, contents = message }.Modal();
+         dialogRes = MessageBox { master = master, type = yesNoCancel, text = parent.caption ? parent.caption : rootWindow.caption, contents = message }.Modal();
 
          if(dialogRes == yes)
          {