Simplify the code for updating codec action

This commit is contained in:
Jekyll Wu
2011-10-24 10:08:33 +08:00
parent 91f8e533c8
commit e9bd2febee

View File

@@ -568,7 +568,7 @@ void SessionController::prepareChangeProfileMenu()
}
void SessionController::updateCodecAction()
{
_codecAction->setCurrentCodec(QString(_session->emulation()->codec()->name()));
_codecAction->setCurrentCodec(QString(_session->codec()));
}
void SessionController::changeCodec(QTextCodec* codec)