VirtualBox

Changeset 77871 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 25, 2019 1:42:12 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Hiding some defunc actions.

File:
1 edited

Legend:

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

    r76626 r77871  
    187187        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
    188188        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_CreateNewDirectory));
    189         /* Hide cut, copy, and paste for now. We will implement those
    190            when we have an API for host file operations: */
    191189        // m_pToolBar->addSeparator();
    192         // m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
    193         // m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
    194         // m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
     190        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
     191        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
     192        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
    195193        m_pToolBar->addSeparator();
    196194        m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_SelectAll));
     
    202200        m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
    203201        m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_ShowProperties));
     202
     203        /* Hide cut, copy, and paste for now. We will implement those
     204           when we have an API for host file operations: */
     205        m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy)->setVisible(false);
     206        m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut)->setVisible(false);
     207        m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste)->setVisible(false);
     208
    204209    }
    205210
     
    221226    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
    222227    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_CreateNewDirectory));
    223     /* Hide cut, copy, and paste for now. We will implement those
    224        when we have an API for host file operations: */
    225228    // menu.addSeparator();
    226     // menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
    227     // menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
    228     // menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
     229    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
     230    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
     231    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
    229232    menu.addSeparator();
    230233    menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_SelectAll));
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