VirtualBox

Changeset 19087 in vbox


Ignore:
Timestamp:
Apr 21, 2009 4:29:50 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46230
Message:

FE/Qt4: 3855: Windows host QT GUI crash when selecting Other in the shared folders path dialog. Second try to fix both issues.

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

Legend:

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

    r19080 r19087  
    380380void VBoxFilePathSelectorWidget::selectPath()
    381381{
    382     /* Clear the focus early to prevent race condition between our and
    383      * Qt internal focus out events when opening native modal dialog */
    384     clearFocus();
    385 
    386382    /* Preparing initial directory. */
    387383    QString initDir = mPath.isNull() ? mHomeDir :
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r18905 r19087  
    40474047            bi.lParam = Q_ULONG (&mDir);
    40484048
    4049             /* Qt is uncapable to properly handle modal state if the modal
    4050              * window is not a QWidget. For example, if we have the W1->W2->N
    4051              * ownership where Wx are QWidgets (W2 is modal), and N is a
    4052              * native modal window, cliking on the title bar of W1 will still
    4053              * activate W2 and redirect keyboard/mouse to it. The dirty hack
    4054              * to prevent it is to disable the entire widget... */
    4055             if (mParent)
    4056                 mParent->setEnabled (false);
    4057 
    40584049            LPITEMIDLIST itemIdList = SHBrowseForFolder (&bi);
    40594050            if (itemIdList)
     
    40734064                result = QString::null;
    40744065            QApplication::postEvent (mTarget, new GetExistDirectoryEvent (result));
    4075 
    4076             /* Enable the parent widget again. */
    4077             if (mParent)
    4078                 mParent->setEnabled (true);
    40794066        }
    40804067
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