Changeset 170 for smplayer/trunk/src/prefsubtitles.cpp
- Timestamp:
- Oct 9, 2014, 2:54:21 PM (11 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 168
- Property svn:mergeinfo changed
-
smplayer/trunk/src/prefsubtitles.cpp
r165 r170 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.