VirtualBox

Changeset 88877 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 5, 2021 1:01:54 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144212
Message:

FE/Qt: bugref:9930. Some more logviewer fixes

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

Legend:

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

    r88734 r88877  
    150150    if (!m_pTextEdit)
    151151        return;
    152     m_pTextEdit->appendHtml(strText);
     152    if (document())
     153        document()->setHtml(strText);
    153154    update();
    154155}
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r88874 r88877  
    915915        }
    916916        strTabTitle.append(QFileInfo(strFileName).fileName());
    917         m_pTabWidget->addTab(pLogPage, strTabTitle);
     917
     918
     919        m_pTabWidget->blockSignals(true);
     920        int iIndex = m_pTabWidget->addTab(pLogPage, strTabTitle);
     921        /* !!Hack alert. Setting html to text edit while th tab is not current ends up in an empty text edit: */
     922        if (noLogsToShow)
     923            m_pTabWidget->setCurrentIndex(iIndex);
     924        m_pTabWidget->blockSignals(false);
    918925
    919926        pLogPage->setLogContent(strLogContent, noLogsToShow);
    920927        pLogPage->setScrollBarMarkingsVector(m_pSearchPanel->matchLocationVector());
     928
    921929    }
    922930}
     
    970978        {
    971979            QString strDummyTabText = QString(tr("<p>No log files for the machine %1 found. Press the "
    972                                                  "<b>Rescan</b> button to rescan the log folder "
     980                                                 "<b>Reload</b> button to reload the log folder "
    973981                                                 "<nobr><b>%2</b></nobr>.</p>")
    974982                                              .arg(strMachineName).arg(comMachine.GetLogFolder()));
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