~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/prefsubtitles.cpp

  • Committer: Package Import Robot
  • Author(s): Mateusz Łukasik, Mateusz Łukasik, Alessio Treglia
  • Date: 2014-09-10 13:50:48 UTC
  • mfrom: (1.3.3)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20140910135048-t043hd88bhpfvfow
[ Mateusz Łukasik ]
* New upstream release.

[ Alessio Treglia ]
* Repackaging upstream sources to get rid of
  zlib/contrib/dotzlib/DotZLib.chm.
* Enable parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
#ifdef Q_OS_WIN
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
433
443
}