VirtualBox

Changeset 95711 in vbox


Ignore:
Timestamp:
Jul 18, 2022 1:23:35 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: ​bugref:6899. In file manager, indicating the login error with tooltip of the status icon.

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

Legend:

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

    r95393 r95711  
    485485                icon = UIIconPool::iconSet(":/status_check_16px.png");
    486486                break;
     487            case State_SessionError:
     488                strWarningText = UIFileManager::tr("<p>Some error has occurred. PLease check the log panel.</p>");
     489                icon = UIIconPool::iconSet(":/status_error_16px.png");
     490                break;
    487491            default:
    488492                break;
     
    13201324            m_pGuestSessionWidget->markForError(cErrorInfo.GetResultDetail() == VERR_AUTHENTICATION_FAILURE);
    13211325    }
     1326
     1327    setStateAndEnableWidgets();
     1328
    13221329    if (m_comGuestSession.isOk())
    13231330    {
     
    13521359    else
    13531360        emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession), m_strTableName, FileManagerLogType_Error);
    1354 
    1355     setStateAndEnableWidgets();
    13561361}
    13571362
     
    13931398    {
    13941399        m_enmState = State_SessionRunning;
     1400        return;
     1401    }
     1402    if (!m_comGuestSession.isNull() && m_comGuestSession.GetStatus() == KGuestSessionStatus_Error)
     1403    {
     1404        m_enmState = State_SessionError;
    13951405        return;
    13961406    }
     
    14371447    if (m_pGuestSessionWidget)
    14381448    {
    1439         m_pGuestSessionWidget->setLoginWidgetsEnabled(m_enmState == State_SessionPossible || m_enmState == State_SessionRunning);
     1449        m_pGuestSessionWidget->setLoginWidgetsEnabled(m_enmState == State_SessionPossible ||
     1450                                                      m_enmState == State_SessionRunning ||
     1451                                                      m_enmState == State_SessionError);
    14401452        if (m_enmState == State_SessionPossible)
    14411453            m_pGuestSessionWidget->switchSessionOpenMode();
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h

    r93726 r95711  
    114114        State_SessionRunning,
    115115        State_MachinePaused,
     116        State_SessionError,
    116117        State_Max
    117118    };
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