Changeset 17679 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 11, 2009 11:39:18 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44180
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r17631 r17679 300 300 #if defined Q_WS_WIN 301 301 int confirmDeletingHostInterface (const QString &aName, QWidget *aParent = 0); 302 void cannotCreateHostInterface (const CHost &aHost, const QString &aName,302 void cannotCreateHostInterface (const CHost &aHost, 303 303 QWidget *aParent = 0); 304 304 void cannotCreateHostInterface (const CProgress &aProgress, const QString &aName, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r17640 r17679 1439 1439 1440 1440 void VBoxProblemReporter::cannotCreateHostInterface ( 1441 const CHost &host, const QString &name,QWidget *parent)1441 const CHost &host, QWidget *parent) 1442 1442 { 1443 1443 message (parent ? parent : mainWindowShown(), Error, 1444 tr ("Failed to create the host network interface <b>%1</b>.") 1445 .arg (name), 1444 tr ("Failed to create the host network interface ."), 1446 1445 formatErrorInfo (host)); 1447 1446 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r17387 r17679 546 546 } 547 547 548 /* Creating add host interface dialog */549 VBoxAddNIDialog dlg (this, ifaceName.arg (++ ifaceNumber));550 if (dlg.exec() != QDialog::Accepted)551 return;552 QString iName = dlg.getName();553 554 548 /* Create interface */ 555 549 CHost host = vboxGlobal().virtualBox().GetHost(); 556 550 CHostNetworkInterface iFace; 557 CProgress progress = host.CreateHostOnlyNetworkInterface (i Name, iFace);551 CProgress progress = host.CreateHostOnlyNetworkInterface (iFace); 558 552 if (host.isOk()) 559 553 { 554 QString iName = iFace.GetName(); 555 560 556 vboxProblem().showModalProgressDialog (progress, iName, this); 561 557 /* Add&Select newly created interface */ … … 566 562 } 567 563 else 568 vboxProblem().cannotCreateHostInterface (host, iName,this);564 vboxProblem().cannotCreateHostInterface (host, this); 569 565 570 566 emit listChanged();
Note:
See TracChangeset
for help on using the changeset viewer.