VirtualBox

Ignore:
Timestamp:
Mar 11, 2009 11:39:18 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44180
Message:

Main/Hostonly: not specify name on Create

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r17631 r17679  
    300300#if defined Q_WS_WIN
    301301    int confirmDeletingHostInterface (const QString &aName, QWidget *aParent = 0);
    302     void cannotCreateHostInterface (const CHost &aHost, const QString &aName,
     302    void cannotCreateHostInterface (const CHost &aHost,
    303303                                    QWidget *aParent = 0);
    304304    void cannotCreateHostInterface (const CProgress &aProgress, const QString &aName,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r17640 r17679  
    14391439
    14401440void VBoxProblemReporter::cannotCreateHostInterface (
    1441     const CHost &host, const QString &name, QWidget *parent)
     1441    const CHost &host, QWidget *parent)
    14421442{
    14431443    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 ."),
    14461445        formatErrorInfo (host));
    14471446}
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r17387 r17679  
    546546    }
    547547
    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 
    554548    /* Create interface */
    555549    CHost host = vboxGlobal().virtualBox().GetHost();
    556550    CHostNetworkInterface iFace;
    557     CProgress progress = host.CreateHostOnlyNetworkInterface (iName, iFace);
     551    CProgress progress = host.CreateHostOnlyNetworkInterface (iFace);
    558552    if (host.isOk())
    559553    {
     554        QString iName = iFace.GetName();
     555
    560556        vboxProblem().showModalProgressDialog (progress, iName, this);
    561557        /* Add&Select newly created interface */
     
    566562    }
    567563    else
    568         vboxProblem().cannotCreateHostInterface (host, iName, this);
     564        vboxProblem().cannotCreateHostInterface (host, this);
    569565
    570566    emit listChanged();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette