VirtualBox

Changeset 92894 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 14, 2021 11:29:31 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148849
Message:

FE/Qt: bugref:9371. Trying to catch authentication error.

File:
1 edited

Legend:

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

    r92884 r92894  
    4848
    4949#include <iprt/path.h>
     50#include <iprt/err.h>
    5051
    5152/*********************************************************************************************************************************
     
    12631264        if (cErrorInfo.isOk() && !cErrorInfo.GetText().contains("success", Qt::CaseInsensitive))
    12641265            emit sigLogOutput(cErrorInfo.GetText(), m_strTableName, FileManagerLogType_Error);
     1266        if (cErrorInfo.GetResultCode() == VERR_AUTHENTICATION_FAILURE)
     1267            printf("boooooooooooo %d\n", cErrorInfo.GetResultCode());
    12651268    }
    12661269    if (m_comGuestSession.isOk())
     
    12781281    }
    12791282    else
    1280         emit sigLogOutput("Guest session is not valid", m_strTableName, FileManagerLogType_Error);
     1283        emit sigLogOutput(UIErrorString::formatErrorInfo(m_comGuestSession), m_strTableName, FileManagerLogType_Error);
     1284
    12811285    setStateAndEnableWidgets();
    12821286}
     
    12911295        return;
    12921296    }
    1293     if (m_pGuestSessionPanel)
    1294         m_pGuestSessionPanel->markForError(!openGuestSession(strUserName, strPassword));
     1297    openGuestSession(strUserName, strPassword);
    12951298}
    12961299
     
    13311334    cleanupGuestSessionListener();
    13321335    closeGuestSession();
     1336    setStateAndEnableWidgets();
    13331337}
    13341338
     
    14131417            this, &UIFileManagerGuestTable::sltGuestSessionStateChanged);
    14141418
    1415     if (m_comGuestSession.GetStatus() != KGuestSessionStatus_Started ||
    1416         m_comGuestSession.GetStatus() != KGuestSessionStatus_Starting)
    1417         return false;
    14181419    return true;
    14191420}
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