DEADSOFTWARE

gui: replace MessageBox with Application.MessageBox (which i correctly works on osx)
[d2df-editor.git] / src / editor / f_addresource.pas
index d67765e20d111ae91e253ee8350953e1a46ff8c4..f738384273e0e92aa8d74d2656175ef08389f274 100644 (file)
@@ -87,7 +87,7 @@ procedure TAddResourceForm.bOKClick(Sender: TObject);
 begin
   if FResourceName = '' then
   begin
-    MessageBox(0, PChar(_lc[I_MSG_CHOOSE_RES]),
+    Application.MessageBox(PChar(_lc[I_MSG_CHOOSE_RES]),
                PChar(_lc[I_MSG_ERROR]), MB_OK + MB_ICONERROR);
     Exit;
   end;