VirtualBox

Changeset 4046 in vbox for trunk


Ignore:
Timestamp:
Aug 6, 2007 5:27:55 PM (17 years ago)
Author:
vboxsync
Message:

GUI: GA download: Compare files using RTPathCompare to handle the case properly.

File:
1 edited

Legend:

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

    r4043 r4046  
    23052305        /* Check for the already registered required image: */
    23062306        CVirtualBox vbox = vboxGlobal().virtualBox();
    2307         QString iName = QString ("VBoxGuestAdditions_%1.iso")
     2307        QString name = QString ("VBoxGuestAdditions_%1.iso")
    23082308                                 .arg (vbox.GetVersion());
    23092309        CDVDImageEnumerator en = vbox.GetDVDImages().Enumerate();
     
    23112311        {
    23122312            QString path = en.GetNext().GetFilePath();
    2313             if (path.find (iName) != -1 && QFile::exists (path))
     2313            /* compare the name part ignoring the file case*/
     2314            QString fn = QFileInfo (path).fileName();
     2315            if (RTPathCompare (name.utf8(), fn.utf8()) == 0)
    23142316                return installGuestAdditionsFrom (path);
    23152317        }
     
    23202322        {
    23212323            QString url = QString ("http://www.virtualbox.org/download/%1/")
    2322                                    .arg (vbox.GetVersion()) + iName;
     2324                                   .arg (vbox.GetVersion()) + name;
    23232325            QString target = QDir (vboxGlobal().virtualBox().GetHomeFolder())
    2324                                    .absFilePath (iName);
     2326                                   .absFilePath (name);
    23252327
    23262328            new VBoxDownloaderWgt (statusBar(), devicesInstallGuestToolsAction,
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