Use "{ }" consistently in "if... else..." statements.

This commit is contained in:
Jekyll Wu
2011-09-05 22:28:44 +08:00
parent 0016b3c0c2
commit 6f3b4bbab6

View File

@@ -958,7 +958,9 @@ void SessionController::showHistoryOptions()
if ( currentHistory.isEnabled() )
{
if ( currentHistory.isUnlimited() )
{
dialog->setMode( HistorySizeDialog::UnlimitedHistory );
}
else
{
dialog->setMode( HistorySizeDialog::FixedSizeHistory );
@@ -966,7 +968,9 @@ void SessionController::showHistoryOptions()
}
}
else
{
dialog->setMode( HistorySizeDialog::NoHistory );
}
connect( dialog , SIGNAL(optionsChanged(int,int,bool)) ,
this , SLOT(scrollBackOptionsChanged(int,int,bool)) );