儲存庫 vbox 的更動 66722
- 時間撮記:
- 2017-4-28 下午02:40:46 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r66721 r66722 521 521 updateItemForNetworkHost(data, true, pItem); 522 522 523 /* Make sure current item fetched: */ 524 sltHandleCurrentItemChange(); 525 523 526 /* Adjust tree-widget: */ 524 527 sltAdjustTreeWidget(); … … 557 560 558 561 /* Get item data: */ 559 UIDataHostNetwork data = *pChangedItem;562 UIDataHostNetwork oldData = *pChangedItem; 560 563 561 564 /* Make sure dhcp server status changed: */ 562 if ( ( data.m_dhcpserver.m_fEnabled565 if ( ( oldData.m_dhcpserver.m_fEnabled 563 566 && pChangedItem->checkState(Column_DHCP) == Qt::Checked) 564 || ( ! data.m_dhcpserver.m_fEnabled567 || ( !oldData.m_dhcpserver.m_fEnabled 565 568 && pChangedItem->checkState(Column_DHCP) == Qt::Unchecked)) 566 569 return; … … 570 573 571 574 /* Find corresponding interface: */ 572 CHostNetworkInterface comInterface = comHost.FindHostNetworkInterfaceByName( data.m_interface.m_strName);575 CHostNetworkInterface comInterface = comHost.FindHostNetworkInterfaceByName(oldData.m_interface.m_strName); 573 576 574 577 /* Show error message if necessary: */ 575 578 if (!comHost.isOk() || comInterface.isNull()) 576 msgCenter().cannotFindHostNetworkInterface(comHost, data.m_interface.m_strName, this);579 msgCenter().cannotFindHostNetworkInterface(comHost, oldData.m_interface.m_strName, this); 577 580 else 578 581 { … … 600 603 /* Save whether DHCP server is enabled: */ 601 604 if (comServer.isOk()) 602 comServer.SetEnabled(! data.m_dhcpserver.m_fEnabled);605 comServer.SetEnabled(!oldData.m_dhcpserver.m_fEnabled); 603 606 604 607 /* Show error message if necessary: */ … … 607 610 { 608 611 /* Update interface in the tree: */ 612 UIDataHostNetwork data; 609 613 loadHostNetwork(comInterface, data); 610 614 updateItemForNetworkHost(data, true, pChangedItem); 615 616 /* Make sure current item fetched: */ 617 sltHandleCurrentItemChange(); 611 618 612 619 /* Adjust tree-widget: */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器