From f20565af53114df631719b440bf394ed1f5343eb Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 11 Nov 2023 21:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VM-source/buildvbox.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VM-source/buildvbox.cpp b/VM-source/buildvbox.cpp index 89634ca..b9bc0d4 100644 --- a/VM-source/buildvbox.cpp +++ b/VM-source/buildvbox.cpp @@ -161,7 +161,10 @@ buildvbox::buildvbox(QString isoPath, int id, int vm){ } else{ //vm.AutoInstall(isoPath); - vm.MountMainISO(isoPath); + if(isoPath != ""){ + vm.MountMainISO(isoPath); + } + } vm.SetCPU(get_nprocs(), GetCPUSocket(), GetCPUCore());