VirtualBox

Changeset 39128 in vbox for trunk


Ignore:
Timestamp:
Oct 27, 2011 12:44:47 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt4: we are only interested in the last suffix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWizard.cpp

    r38572 r39128  
    813813    {
    814814        /* If valid file extension is missed, append it: */
    815         if (QFileInfo(strChosenFilePath).completeSuffix().isEmpty())
     815        if (QFileInfo(strChosenFilePath).suffix().isEmpty())
    816816            strChosenFilePath += QString(".%1").arg(m_strDefaultExtension);
    817817        m_pLocationEditor->setText(QDir::toNativeSeparators(strChosenFilePath));
     
    878878
    879879    /* Add passed extension if its not done yet: */
    880     if (QFileInfo(strFileName).completeSuffix().toLower() != strExtension)
     880    if (QFileInfo(strFileName).suffix().toLower() != strExtension)
    881881        strFileName += QString(".%1").arg(strExtension);
    882882
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