Changeset 92741 in vbox
- Timestamp:
- Dec 3, 2021 4:45:05 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 3 edited
-
UIFileManager.cpp (modified) (1 diff)
-
UIFileManagerGuestTable.cpp (modified) (4 diffs)
-
UIFileManagerGuestTable.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp
r92733 r92741 138 138 UIFileManagerOptions::create(); 139 139 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()); 142 143 } 143 144 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r92733 r92741 26 26 #include "UIActionPool.h" 27 27 #include "UIConverter.h" 28 #include "UICommon.h" 28 29 #include "UICustomFileSystemModel.h" 29 30 #include "UIErrorString.h" … … 754 755 m_pGuestSessionPanel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); 755 756 sltHandleGuestSessionPanelShown(); 756 //connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCreateSession,757 //this, &UIFileManagerGuestTable::sltCreateGuestSession);757 connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCreateSession, 758 this, &UIFileManagerGuestTable::sltCreateGuestSession); 758 759 // connect(m_pGuestSessionPanel, &UIFileManagerGuestSessionPanel::sigCloseSession, 759 760 // this, &UIFileManagerGuestTable::sltCloseGuestSession); … … 1001 1002 } 1002 1003 1004 void 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 1003 1017 /*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ 1004 1018 /*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ … … 1014 1028 1015 1029 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 }1028 1030 1029 1031 void UIFileManager::sltCloseGuestSession() -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h
r92733 r92741 94 94 void sltGuestSessionRegistered(CGuestSession guestSession); 95 95 void sltGuestSessionStateChanged(const CGuestSessionStateChangedEvent &cEvent); 96 96 void sltCreateGuestSession(QString strUserName, QString strPassword); 97 97 98 98 private:
Note:
See TracChangeset
for help on using the changeset viewer.

