Ignore:
Timestamp:
Oct 9, 2014, 11:54:00 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 14.9.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/prefsubtitles.cpp

    r163 r168  
    425425        if (b) {
    426426                style_font_combo->setFontsFromDir(QString::null);
     427                fontCombo->setFontsFromDir(QString::null);
    427428        } else {
    428429                QString fontdir = Paths::fontPath();
    429430                //QString fontdir = "/tmp/fonts/";
    430431                style_font_combo->setFontsFromDir(fontdir);
     432
     433                // Calling setFontsFromDir resets the fonts in other comboboxes!
     434                // So the font list is copied from the previous combobox
     435                QString current_text = fontCombo->currentText();
     436                fontCombo->clear();
     437                for (int n=0; n < style_font_combo->count(); n++) {
     438                        fontCombo->addItem( style_font_combo->itemText(n) );
     439                }
     440                fontCombo->setCurrentText(current_text);
    431441        }
    432442#endif
Note: See TracChangeset for help on using the changeset viewer.