Changeset 77851 in vbox
- Timestamp:
- Mar 22, 2019 3:54:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r77528 r77851 68 68 UIGuestControlFileView(QWidget * parent = 0); 69 69 bool hasSelection() const; 70 bool isInEditState() const; 70 71 71 72 protected: … … 199 200 return false; 200 201 return pSelectionModel->hasSelection(); 202 } 203 204 bool UIGuestControlFileView::isInEditState() const 205 { 206 return state() == QAbstractItemView::EditingState; 201 207 } 202 208 … … 972 978 if (pKeyEvent->key() == Qt::Key_Enter || pKeyEvent->key() == Qt::Key_Return) 973 979 { 974 if (m_pView && m_pModel )980 if (m_pView && m_pModel && !m_pView->isInEditState()) 975 981 { 976 982 /* 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.