Index: /trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSFDetails.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSFDetails.cpp	(revision 30989)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSFDetails.cpp	(revision 30990)
@@ -41,7 +41,10 @@
     /* No reset button */
     mPsPath->setResetEnabled (false);
+
+    /* Setup connections: */
     connect (mPsPath, SIGNAL (currentIndexChanged (int)),
              this, SLOT (onSelectPath()));
-
+    connect (mPsPath, SIGNAL (pathChanged (const QString &)),
+             this, SLOT (onSelectPath()));
     connect (mLeName, SIGNAL (textChanged (const QString &)),
              this, SLOT (validate()));
@@ -133,4 +136,5 @@
 
     mButtonBox->button (QDialogButtonBox::Ok)->setEnabled (!mPsPath->path().isEmpty() &&
+                                                           QDir(mPsPath->path()).exists() &&
                                                            !mLeName->text().trimmed().isEmpty() &&
                                                            !mLeName->text().contains(" ") &&
@@ -157,5 +161,5 @@
     if (!folder.isRoot())
         /* Processing non-root folder */
-        mLeName->setText (folder.dirName());
+        mLeName->setText (folder.dirName().replace(' ', '_'));
     else
     {
