Fix qemu create wizard when iothread is set

The variable to use to check the disk type is confid,
as set in line 16 with:
var confid = me.confid || (values.controller + values.deviceid);
This commit is contained in:
Emmanuel Kasper 2015-06-17 14:25:12 +02:00 committed by Dietmar Maurer
parent 3c3ca54b67
commit e4cb80cc99

View File

@ -39,7 +39,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
delete me.drive.discard;
}
if (values.iothread && me.confid.match(/^virtio\d+$/)) {
if (values.iothread && confid.match(/^virtio\d+$/)) {
me.drive.iothread = 'on';
} else {
delete me.drive.iothread;