diff --git a/konsole/konsole.cpp b/konsole/konsole.cpp index 7fe8c8112..3d7b28771 100644 --- a/konsole/konsole.cpp +++ b/konsole/konsole.cpp @@ -1235,6 +1235,10 @@ void Konsole::slotSelectScrollbar() { void Konsole::slotSelectFont() { assert(se); int item = selectFont->currentItem(); + if( item > 9 ) // compensate for the two separators + --item; + if( item > 6 ) + --item; // KONSOLEDEBUG << "slotSelectFont " << item << endl; if (item == DEFAULTFONT) { diff --git a/konsole/konsole_part.cpp b/konsole/konsole_part.cpp index 3dda35db7..d1f3f1f39 100644 --- a/konsole/konsole_part.cpp +++ b/konsole/konsole_part.cpp @@ -573,6 +573,10 @@ void konsolePart::slotSelectScrollbar() void konsolePart::slotSelectFont() { int item = selectFont->currentItem(); + if( item > 9 ) // compensate for the two separators + --item; + if( item > 6 ) + --item; // KONSOLEDEBUG << "slotSelectFont " << item << endl; if (item == DEFAULTFONT) { if ( KFontDialog::getFont(defaultFont, true) == QDialog::Rejected ) {