VirtualBox

Changeset 14629 in vbox


Ignore:
Timestamp:
Nov 26, 2008 10:33:11 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39932
Message:

Fe/Qt4: Systray: Various fixes.

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

Legend:

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

    r14593 r14629  
    941941    void postEvent (QEvent *e)
    942942    {
    943         // currently, we don't post events if we are in the VM execution
    944         // console mode, to save some CPU ticks (so far, there was no need
    945         // to handle VirtualBox callback events in the execution console mode)
    946 
     943#ifndef VBOX_GUI_WITH_SYSTRAY
     944        // If not using a systray menu, we don't post events if we are in the VM
     945        // execution console mode, to save some CPU ticks (so far, there was no
     946        // need to handle VirtualBox callback events in the execution console
     947        // mode
    947948        if (!mGlobal.isVMConsoleProcess())
     949#endif
    948950            QApplication::postEvent (&mGlobal, e);
    949951    }
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp

    r14586 r14629  
    16811681{
    16821682    /* Erase dialog handle in config file. */
    1683     if (vboxGlobal().isTrayIcon())
     1683    if (mActive)
    16841684    {
    16851685        vboxGlobal().virtualBox().SetExtraData (VBoxDefs::GUI_TrayIconWinID,
  • trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp

    r14584 r14629  
    364364                /* Keep selector window in memory (hidden) because we need it for
    365365                 * the systray menu. */
     366                vboxGlobal().startEnumeratingMedia();
    366367                vboxGlobal().selectorWnd();
     368                vboxGlobal().setMainWindow (&vboxGlobal().consoleWnd());
    367369                if (   vboxGlobal().trayIconInstall()
    368370                    && vboxGlobal().isTrayIcon())
     
    370372                    /* Nothing to do here yet. */
    371373                }
    372 #endif
     374#else
    373375                vboxGlobal().setMainWindow (&vboxGlobal().consoleWnd());
     376#endif
    374377                if (vboxGlobal().startMachine (vboxGlobal().managedVMUuid()))
    375378                    rc = a.exec();
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