VirtualBox

Changeset 92741 in vbox


Ignore:
Timestamp:
Dec 3, 2021 4:45:05 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9371. Reviving some connections.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp

    r92733 r92741  
    138138    UIFileManagerOptions::create();
    139139    uiCommon().setHelpKeyword(this, "guestadd-gc-file-manager");
    140     //connect(&uiCommon(), &UICommon::sigAskToDetachCOM, this, &UIFileManager::sltCleanupListenerAndGuest);
    141     Q_UNUSED(comMachine);
     140
     141    if (!comMachine.isNull())
     142        setMachines( QVector<QUuid>() << comMachine.GetId());
    142143}
    143144
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r92733 r92741  
    2626#include "UIActionPool.h"
    2727#include "UIConverter.h"
     28#include "UICommon.h"
    2829#include "UICustomFileSystemModel.h"
    2930#include "UIErrorString.h"
     
    754755            m_pGuestSessionPanel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
    755756            sltHandleGuestSessionPanelShown();
    756             // connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCreateSession,
    757             //         this, &UIFileManagerGuestTable::sltCreateGuestSession);
     757            connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCreateSession,
     758                    this, &UIFileManagerGuestTable::sltCreateGuestSession);
    758759            // connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCloseSession,
    759760            //         this, &UIFileManagerGuestTable::sltCloseGuestSession);
     
    10011002}
    10021003
     1004void UIFileManagerGuestTable::sltCreateGuestSession(QString strUserName, QString strPassword)
     1005{
     1006    if (strUserName.isEmpty())
     1007    {
     1008        emit sigLogOutput("No user name is given", m_strTableName, FileManagerLogType_Error);
     1009        if (m_pGuestSessionPanel)
     1010            m_pGuestSessionPanel->markForError(true);
     1011        return;
     1012    }
     1013    if (m_pGuestSessionPanel)
     1014        m_pGuestSessionPanel->markForError(!openSession(strUserName, strPassword));
     1015}
     1016
    10031017/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
    10041018/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
     
    10141028
    10151029
    1016 void UIFileManagerGuestTable::sltCreateGuestSession(QString strUserName, QString strPassword)
    1017 {
    1018     if (strUserName.isEmpty())
    1019     {
    1020         emit sigLogOutput("No user name is given", m_strTableName, FileManagerLogType_Error);
    1021         if (m_pGuestSessionPanel)
    1022             m_pGuestSessionPanel->markForError(true);
    1023         return;
    1024     }
    1025     if (m_pGuestSessionPanel)
    1026         m_pGuestSessionPanel->markForError(!openSession(strUserName, strPassword));
    1027 }
    10281030
    10291031void UIFileManager::sltCloseGuestSession()
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h

    r92733 r92741  
    9494    void sltGuestSessionRegistered(CGuestSession guestSession);
    9595    void sltGuestSessionStateChanged(const CGuestSessionStateChangedEvent &cEvent);
    96 
     96    void sltCreateGuestSession(QString strUserName, QString strPassword);
    9797
    9898private:
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