瀏覽代碼

Merge remote-tracking branch 'origin/pr/139'

* origin/pr/139:
  Changed to not force default netvm in Create New VM
Marek Marczykowski-Górecki 6 年之前
父節點
當前提交
e122669aef
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      qubesmanager/create_new_vm.py

+ 2 - 1
qubesmanager/create_new_vm.py

@@ -155,7 +155,8 @@ class NewVmDlg(QtGui.QDialog, Ui_NewVMDlg):
 
         properties = {}
         properties['provides_network'] = self.provides_network.isChecked()
-        properties['netvm'] = self.netvm_list[self.netvm.currentIndex()]
+        if self.netvm.currentIndex() != 0:
+            properties['netvm'] = self.netvm_list[self.netvm.currentIndex()]
         if self.install_system.isChecked():
             properties['virt_mode'] = 'hvm'
             properties['kernel'] = None