[PATCH setup] Make any MessageBox shown by the GuiParseFeedback class modal to the progress page

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH setup] Make any MessageBox shown by the GuiParseFeedback class modal to the progress page

Jon TURNEY
---
 ini.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ini.cc b/ini.cc
index e9152ec..87443a8 100644
--- a/ini.cc
+++ b/ini.cc
@@ -108,11 +108,11 @@ public:
     }
   virtual void warning (const std::string& message)const
     {
-      mbox (0, message.c_str (), "Warning", 0);
+      mbox (Progress.GetHWND(), message.c_str (), "Warning", 0);
     }
   virtual void error (const std::string& message)const
     {
-      mbox (0, message.c_str (), "Parse Errors", 0);
+      mbox (Progress.GetHWND(), message.c_str (), "Parse Errors", 0);
     }
   virtual ~ GuiParseFeedback ()
     {
--
2.15.1