From 6b4c95b3c426f98a5e90985909b0ebb90ec83943 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 11 Nov 2023 21:41:18 +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 --- buildvbox.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildvbox.cpp b/buildvbox.cpp index 89634ca..b9bc0d4 100644 --- a/buildvbox.cpp +++ b/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());