From 4ec390838b88218c6539b51c1643d66024cb737a Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Thu, 15 Feb 2024 12:14:32 -0500
Subject: [PATCH] Re-enable non-KiCad board import when non-standalone

Partial revert of ec2cd99405

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16978
---
 pcbnew/files.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp
index 2e9f95e8fc..e130efe429 100644
--- a/pcbnew/files.cpp
+++ b/pcbnew/files.cpp
@@ -278,10 +278,7 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
 
     case ID_IMPORT_NON_KICAD_BOARD:
     {
-        // Only standalone mode can directly load a new document
-        if( !Kiface().IsSingle() )
-            return false;
-
+        // Note: we explicitly allow this even if not in standalone mode for now, even though it is dangerous.
         int      open_ctl = KICTL_NONKICAD_ONLY;
         wxString fileName; // = Prj().AbsolutePath( GetBoard()->GetFileName() );