VirtualBox

Changeset 17640 in vbox


Ignore:
Timestamp:
Mar 10, 2009 3:33:58 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 3627: Shorten error dialogs: VirtualBox update warning's file list moved to collapse-able part.

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

Legend:

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

    r17630 r17640  
    532532void QIMessageBox::setDetailsText (const QString &aText)
    533533{
    534     QStringList parts (aText.split ("<!--EOM-->", QString::SkipEmptyParts));
    535     mTextLabel->setText (mTextLabel->text() + parts [0]);
    536     if (parts.size() > 1) mDetailsText->setText (parts [1]);
     534    QStringList parts (aText.split ("<!--EOM-->", QString::KeepEmptyParts));
     535    if (!parts [0].isEmpty()) mTextLabel->setText (mTextLabel->text() + parts [0]);
     536    if (parts.size() > 1 && !parts [1].isEmpty()) mDetailsText->setText (parts [1]);
    537537}
    538538
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r17631 r17640  
    19791979                  tr ("<li><b>Exit</b> to terminate VirtualBox without saving "
    19801980                      "the results of the conversion to disk.</li>")),
    1981         aFileList,
     1981        QString ("<!--EOM-->%1").arg (aFileList),
    19821982        NULL /* aAutoConfirmId */,
    19831983        QIMessageBox::Yes,
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