VirtualBox

Changeset 3275 in vbox


Ignore:
Timestamp:
Jun 25, 2007 2:12:43 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: Simplified VBoxGlobal::startMachine().

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

Legend:

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

    r3045 r3275  
    165165
    166166    void cannotOpenSession (const CSession &session);
    167     void cannotOpenSession (const CVirtualBox &vbox, const QUuid &id);
    168167    void cannotOpenSession (const CVirtualBox &vbox, const CMachine &machine,
    169168                            const CProgress &progress = CProgress());
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r3144 r3275  
    13521352    AssertReturn (valid, false);
    13531353
    1354     CSession session;
    1355     CVirtualBox vbox = vboxGlobal().virtualBox();
    1356 
    1357     session.createInstance (CLSID_Session);
    1358     if (session.isNull()) {
    1359         vboxProblem().cannotOpenSession (session);
     1354    CSession session = vboxGlobal().openSession (id);
     1355    if (session.isNull())
    13601356        return false;
    1361     }
    1362 
    1363     vbox.OpenSession (session, id);
    1364     if (!vbox.isOk()) {
    1365         vboxProblem().cannotOpenSession (vbox, id);
    1366         return false;
    1367     }
    13681357
    13691358    return consoleWnd().openView (session);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r3045 r3275  
    10441044}
    10451045
    1046 void VBoxProblemReporter::cannotOpenSession (const CVirtualBox &vbox,
    1047                                              const QUuid &id
    1048 ) {
    1049     message (
    1050         mainWindowShown(),
    1051         Error,
    1052         tr ("Failed to open a session for a virtual machine with UUID <b>%1</b>.")
    1053             .arg (id),
    1054         formatErrorInfo (vbox)
    1055     );
    1056 }
    1057 
    10581046void VBoxProblemReporter::cannotOpenSession (
    10591047    const CVirtualBox &vbox, const CMachine &machine,
Note: See TracChangeset for help on using the changeset viewer.

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