VirtualBox

Changeset 34374 in vbox for trunk


Ignore:
Timestamp:
Nov 25, 2010 2:38:49 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: break out of the loop when the first parameter is seen

File:
1 edited

Legend:

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

    r34369 r34374  
    46174617    for (int i = 1; i < args.size(); ++i)
    46184618    {
     4619        /* We break out after the first parameter, cause there could be
     4620           parameters with arguments (e.g. --comment comment). */
     4621        if (args.at(i).startsWith("-"))
     4622            break;
    46194623#ifdef Q_WS_MAC
    46204624        QString strArg = ::darwinResolveAlias(args.at(i));
     
    46234627#endif /* !Q_WS_MAC */
    46244628        if (   !strArg.isEmpty()
    4625             && !strArg.startsWith("-")
    46264629            && QFile::exists(strArg))
    46274630            list << QUrl::fromLocalFile(strArg);
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