@ -94,9 +94,9 @@ MainActions::MainActions(MainWindow *parent)
mainWidget ( ) - > setStandardToolBarMenuEnabled ( true ) ;
// setup transfermode actions
m_transModeAction = new TDEActionMenu ( i18n ( " &Transfer Mode (Auto) " ) , " binary " , actionCollection ( ) , " transfermode " ) ;
m_modeAscii = new TDERadioAction ( i18n ( " ASCII " ) , " ascii" , TDEShortcut ( ) , this , SLOT ( slotModeAscii ( ) ) , actionCollection ( ) ) ;
m_modeBinary = new TDERadioAction ( i18n ( " Binary " ) , " binary " , TDEShortcut ( ) , this , SLOT ( slotModeBinary ( ) ) , actionCollection ( ) ) ;
m_transModeAction = new TDEActionMenu ( i18n ( " &Transfer Mode (Auto) " ) , " application-octet-stream " , actionCollection ( ) , " transfermode " ) ;
m_modeAscii = new TDERadioAction ( i18n ( " ASCII " ) , " text-vnd.tde. ascii" , TDEShortcut ( ) , this , SLOT ( slotModeAscii ( ) ) , actionCollection ( ) ) ;
m_modeBinary = new TDERadioAction ( i18n ( " Binary " ) , " application-octet-stream " , TDEShortcut ( ) , this , SLOT ( slotModeBinary ( ) ) , actionCollection ( ) ) ;
m_modeAuto = new TDERadioAction ( i18n ( " Auto " ) , TDEShortcut ( ) , this , SLOT ( slotModeAuto ( ) ) , actionCollection ( ) ) ;
// Set grouping so only one action can be selected
@ -125,14 +125,14 @@ TDEMainWindow *MainActions::mainWidget()
void MainActions : : slotModeAscii ( )
{
m_transModeAction - > setIcon ( " ascii" ) ;
m_transModeAction - > setIcon ( " text-vnd.tde. ascii" ) ;
m_transModeAction - > setText ( i18n ( " &Transfer Mode (ASCII) " ) ) ;
KFTPCore : : Config : : self ( ) - > setGlobalMode ( ' A ' ) ;
}
void MainActions : : slotModeBinary ( )
{
m_transModeAction - > setIcon ( " binary " ) ;
m_transModeAction - > setIcon ( " application-octet-stream " ) ;
m_transModeAction - > setText ( i18n ( " &Transfer Mode (Binary) " ) ) ;
KFTPCore : : Config : : self ( ) - > setGlobalMode ( ' I ' ) ;
}