提交 6ce4417f 编写于 作者: S serge-rider

Driver editor fix (dups check)

上级 c4509b1c
......@@ -790,8 +790,8 @@ public class DriverEditDialog extends HelpEnabledDialog {
}
DriverDescriptor oldDriver = provider.getDriverByName(driver.getCategory(), driver.getName());
if (oldDriver != null && oldDriver != driver) {
UIUtils.showMessageBox(getShell(), "Driver create", "Driver '" + driver.getName() + "' already exists. Change driver name", SWT.ICON_ERROR);
if (oldDriver != null && oldDriver != driver && !oldDriver.isDisabled() && oldDriver.getReplacedBy() == null) {
UIUtils.showMessageBox(getShell(), "Driver settings save", "Driver '" + driver.getName() + "' already exists. Change driver name", SWT.ICON_ERROR);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册