Proofread internal information after retranslating UI #4836

This commit is contained in:
Jerry (Xinyu Hou) 2016-04-28 07:16:40 -07:00
parent c7e723030b
commit 48d24d72e6
2 changed files with 11 additions and 1 deletions

View File

@ -491,6 +491,15 @@ void MainWindow::restartSynergy()
startSynergy();
}
void MainWindow::proofreadInfo()
{
setEdition(m_AppConfig.edition());
int oldState = m_SynergyState;
m_SynergyState = synergyDisconnected;
setSynergyState((qSynergyState)oldState);
}
void MainWindow::clearLog()
{
m_pLogOutput->clear();
@ -958,7 +967,7 @@ void MainWindow::changeEvent(QEvent* event)
retranslateUi(this);
retranslateMenuBar();
setEdition(m_AppConfig.edition());
proofreadInfo();
break;
}

View File

@ -178,6 +178,7 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
bool autoHide();
QString getTimeStamp();
void restartSynergy();
void proofreadInfo();
private:
QSettings& m_Settings;