Changeset 168 for smplayer/vendor/current/src/prefsubtitles.cpp
- Timestamp:
- Oct 9, 2014, 11:54:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefsubtitles.cpp
r163 r168 425 425 if (b) { 426 426 style_font_combo->setFontsFromDir(QString::null); 427 fontCombo->setFontsFromDir(QString::null); 427 428 } else { 428 429 QString fontdir = Paths::fontPath(); 429 430 //QString fontdir = "/tmp/fonts/"; 430 431 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); 431 441 } 432 442 #endif
Note:
See TracChangeset
for help on using the changeset viewer.