mirror of
https://github.com/KDE/konsole.git
synced 2026-05-07 06:05:18 -04:00
Get the correct font index by compensating for separators. I guess it didn't work since
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/kdeui/kactionclasses.cpp#rev1.307 svn path=/trunk/kdebase/konsole/; revision=206282
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user