VirtualBox

Ignore:
Timestamp:
Jan 7, 2011 4:11:26 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69304
Message:

FE/Qt4-OSX: disable the "Create Alias on Desktop" shortcut when the VM is legacy (xml extension)

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMItem.h

    r34064 r35433  
    5656    KSessionState sessionState() const { return m_sessionState; }
    5757
     58    QString settingsFile() const { return m_strSettingsFile; }
     59
    5860    bool recache();
    5961
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp

    r35425 r35433  
    14341434        /* Enable the shell interaction features. */
    14351435        mVmOpenInFileManagerAction->setEnabled(true);
     1436#ifdef Q_WS_MAC
     1437        /* On Mac OS X this are real alias files, which don't work with the old
     1438         * legacy xml files. On the other OS's some kind of start up script is
     1439         * used. */
     1440        mVmCreateShortcut->setEnabled(item->settingsFile().endsWith(".vbox", Qt::CaseInsensitive));
     1441#else /* Q_WS_MAC */
    14361442        mVmCreateShortcut->setEnabled(true);
     1443#endif /* Q_WS_MAC */
    14371444    }
    14381445    else
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