VirtualBox

Changeset 101026 in vbox


Ignore:
Timestamp:
Sep 6, 2023 11:09:08 AM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699, bugref:9072. Fixing broken 'open font selection dialog' slot.

File:
1 edited

Legend:

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

    r100963 r101026  
    189189void UIVMLogViewerPreferencesWidget::sltOpenFontDialog()
    190190{
     191    QObject *pParent = parent();
     192    UIVMLogViewerWidget *pLogViewer = 0;
     193    while(pParent)
     194    {
     195        pLogViewer = qobject_cast<UIVMLogViewerWidget*>(pParent);
     196        if (pLogViewer)
     197            break;
     198        pParent = pParent->parent();
     199    }
     200
     201    if (!pLogViewer)
     202        return;
    191203    QFont currentFont;
    192     UIVMLogViewerWidget* parentWidget = qobject_cast<UIVMLogViewerWidget*>(parent());
    193     if (!parentWidget)
    194         return;
    195 
    196     currentFont = parentWidget->currentFont();
     204    currentFont = pLogViewer->currentFont();
    197205    bool ok;
    198206    QFont font =
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