VirtualBox

Changeset 30990 in vbox


Ignore:
Timestamp:
Jul 22, 2010 1:20:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63902
Message:

FE/Qt: 3568: Add Shared Folder UI may suggest invalid folder name: This issue should be fixed as folder path is now checked for existence and folder name has now spaces replaced with underscores.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSFDetails.cpp

    r28800 r30990  
    4141    /* No reset button */
    4242    mPsPath->setResetEnabled (false);
     43
     44    /* Setup connections: */
    4345    connect (mPsPath, SIGNAL (currentIndexChanged (int)),
    4446             this, SLOT (onSelectPath()));
    45 
     47    connect (mPsPath, SIGNAL (pathChanged (const QString &)),
     48             this, SLOT (onSelectPath()));
    4649    connect (mLeName, SIGNAL (textChanged (const QString &)),
    4750             this, SLOT (validate()));
     
    133136
    134137    mButtonBox->button (QDialogButtonBox::Ok)->setEnabled (!mPsPath->path().isEmpty() &&
     138                                                           QDir(mPsPath->path()).exists() &&
    135139                                                           !mLeName->text().trimmed().isEmpty() &&
    136140                                                           !mLeName->text().contains(" ") &&
     
    157161    if (!folder.isRoot())
    158162        /* Processing non-root folder */
    159         mLeName->setText (folder.dirName());
     163        mLeName->setText (folder.dirName().replace(' ', '_'));
    160164    else
    161165    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette