Changeset 62315 in vbox
- Timestamp:
- Jul 19, 2016 11:25:26 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r62206 r62315 87 87 void UISelectorWindow::create() 88 88 { 89 /* Make sure selector-window is not created: */ 90 AssertReturnVoid(!m_spInstance); 89 /* Return if selector-window is already created: */ 90 if (m_spInstance) 91 return; 91 92 92 93 /* Create selector-window: */ … … 1135 1136 bool UISelectorWindow::eventFilter(QObject *pObject, QEvent *pEvent) 1136 1137 { 1137 /* Ignore for non-active window : */1138 if (!isActiveWindow() )1138 /* Ignore for non-active window except for FileOpen event which should be always processed: */ 1139 if (!isActiveWindow() && pEvent->type() != QEvent::FileOpen) 1139 1140 return QIWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent); 1140 1141 … … 1149 1150 case QEvent::FileOpen: 1150 1151 { 1151 sltOpenUrls(QList<QUrl>() << static_cast<QFileOpenEvent*>(pEvent)-> file());1152 sltOpenUrls(QList<QUrl>() << static_cast<QFileOpenEvent*>(pEvent)->url()); 1152 1153 pEvent->accept(); 1153 1154 return true;
Note:
See TracChangeset
for help on using the changeset viewer.