VirtualBox

Changeset 93890 in vbox


Ignore:
Timestamp:
Feb 22, 2022 5:49:28 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:3355. Correcting some typo.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxUtils-x11.cpp

    r93115 r93890  
    299299}
    300300
    301 void NativeWindowSubsystem::X11InhibitUninhibitScrenSaver(bool fInhibit, QVector<X11ScreenSaverInhibitMethod*> &inOutIhibitMethods)
     301void NativeWindowSubsystem::X11InhibitUninhibitScrenSaver(bool fInhibit, QVector<X11ScreenSaverInhibitMethod*> &inOutInhibitMethods)
    302302{
    303303    QDBusConnection connection = QDBusConnection::sessionBus();
    304304    if (!X11CheckDBusConnection(connection))
    305305        return;
    306     for (int i = 0; i < inOutIhibitMethods.size(); ++i)
    307     {
    308         QDBusInterface screenSaverInterface(inOutIhibitMethods[i]->m_strServiceName, inOutIhibitMethods[i]->m_strPath,
    309                                             inOutIhibitMethods[i]->m_strInterface, connection);
     306    for (int i = 0; i < inOutInhibitMethods.size(); ++i)
     307    {
     308        QDBusInterface screenSaverInterface(inOutInhibitMethods[i]->m_strServiceName, inOutInhibitMethods[i]->m_strPath,
     309                                            inOutInhibitMethods[i]->m_strInterface, connection);
    310310        if (!screenSaverInterface.isValid())
    311311        {
    312312            QDBusError error = screenSaverInterface.lastError();
    313313            LogRel(("QDBus error for service %s: %s. %s\n",
    314                     inOutIhibitMethods[i]->m_strServiceName.toUtf8().constData(),
     314                    inOutInhibitMethods[i]->m_strServiceName.toUtf8().constData(),
    315315                    error.name().toUtf8().constData(),
    316316                    error.message().toUtf8().constData()));
     
    322322            reply = screenSaverInterface.call("Inhibit", "Oracle VirtualBox", "ScreenSaverInhibit");
    323323            if (reply.isValid())
    324                 inOutIhibitMethods[i]->m_iCookie = reply.value();
     324                inOutInhibitMethods[i]->m_iCookie = reply.value();
    325325        }
    326326        else
    327327        {
    328             reply = screenSaverInterface.call("UnInhibit", inOutIhibitMethods[i]->m_iCookie);
     328            reply = screenSaverInterface.call("UnInhibit", inOutInhibitMethods[i]->m_iCookie);
    329329        }
    330330        if (!reply.isValid())
     
    332332            QDBusError error = reply.error();
    333333            LogRel(("QDBus inhibition call error for service %s: %s. %s\n",
    334                     inOutIhibitMethods[i]->m_strServiceName.toUtf8().constData(),
     334                    inOutInhibitMethods[i]->m_strServiceName.toUtf8().constData(),
    335335                    error.name().toUtf8().constData(),
    336336                    error.message().toUtf8().constData()));
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxUtils-x11.h

    r93115 r93890  
    101101    SHARED_LIBRARY_STUFF QVector<X11ScreenSaverInhibitMethod*> X11FindDBusScrenSaverInhibitMethods();
    102102    /** X11: Disables/enables Screen Saver through QDBus. */
    103     SHARED_LIBRARY_STUFF void X11InhibitUninhibitScrenSaver(bool fInhibit, QVector<X11ScreenSaverInhibitMethod*> &inOutIhibitMethods);
     103    SHARED_LIBRARY_STUFF void X11InhibitUninhibitScrenSaver(bool fInhibit, QVector<X11ScreenSaverInhibitMethod*> &inOutInhibitMethods);
    104104
    105105    /** Activates window with certain @a wId, @a fSwitchDesktop if requested. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r93115 r93890  
    611611{
    612612#if defined(VBOX_WS_X11)
     613    /* Find the methods once and cache them: */
    613614    if (m_methods.isEmpty())
    614615        m_methods = NativeWindowSubsystem::X11FindDBusScrenSaverInhibitMethods();
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