VirtualBox

Changeset 77851 in vbox


Ignore:
Timestamp:
Mar 22, 2019 3:54:03 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Some fix for file manager item rename.

File:
1 edited

Legend:

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

    r77528 r77851  
    6868    UIGuestControlFileView(QWidget * parent = 0);
    6969    bool hasSelection() const;
     70    bool isInEditState() const;
    7071
    7172protected:
     
    199200        return false;
    200201    return pSelectionModel->hasSelection();
     202}
     203
     204bool UIGuestControlFileView::isInEditState() const
     205{
     206    return state() == QAbstractItemView::EditingState;
    201207}
    202208
     
    972978            if (pKeyEvent->key() == Qt::Key_Enter || pKeyEvent->key() == Qt::Key_Return)
    973979            {
    974                 if (m_pView && m_pModel)
     980                if (m_pView && m_pModel && !m_pView->isInEditState())
    975981                {
    976982                    /* Get the selected item. If there are 0 or more than 1 selection do nothing: */
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