VirtualBox

Ignore:
Timestamp:
Oct 2, 2008 12:35:35 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37287
Message:

VirtualBox4: fixed crash when using the -debug option and made the repositioning more correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r12884 r12888  
    871871    console->onViewOpened();
    872872
    873 #ifdef VBOX_WITH_DEBUGGER_GUI
    874     /* open debugger windows if requested */
    875     if (vboxGlobal().isDebuggerAutoShowEnabled())
    876     {
    877         move (QPoint (0, 0));
    878         dbgShowStatistics();
    879         dbgShowCommandLine();
    880     }
    881 #endif
    882 
    883873    bool saved = machine_state == KMachineState_Saved;
    884874
     
    960950        && mIsGraphicsSupported)
    961951        toggleFullscreenMode (true, true);
     952#ifdef VBOX_WITH_DEBUGGER_GUI
     953    /* Open the debugger in "full screen" mode requested by the user. */
     954    else if (vboxGlobal().isDebuggerAutoShowEnabled())
     955    {
     956        /* console in upper left corner of the desktop. */
     957        QRect rct(0, 0, 0, 0);
     958        QDesktopWidget *desktop = QApplication::desktop();
     959        if (desktop)
     960            rct = desktop->availableGeometry(pos());
     961        move (QPoint (rct.x(), rct.y()));
     962
     963        dbgShowStatistics();
     964        dbgShowCommandLine();
     965    }
     966#endif
     967
    962968    mIsOpenViewFinished = true;
    963969    LogFlowFuncLeave();
     
    34983504    if (RT_SUCCESS (rc))
    34993505    {
    3500         rc = pfnGuiCreate (csession.iface(), &mDbgGui, &mDbgGuiVT);
     3506        ISession *pISession = csession.iface();
     3507        rc = pfnGuiCreate (pISession, &mDbgGui, &mDbgGuiVT);
    35013508        if (RT_SUCCESS (rc))
    35023509        {
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