~ubuntu-branches/ubuntu/oneiric/texworks/oneiric

« back to all changes in this revision

Viewing changes to src/PrefsDialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2011-05-06 12:54:27 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110506125427-fbzsh6ey5ti9nsyr
Tags: 0.5~svn808-1
* New Upstream Release (rev. 808).  (Closes: #625543)
* Fixed/Updated copyright file; added Stefan Löffler as Upstream Authors.
* Updated README.Debian a bit.
* Changed to use texworks.desktop, texworks.1 and .png files
  of source trees instead of obsolete ones under debian.
  To do so, refined rules file a bit.
* Updated control file and removed unnecessary texworks.menu and COPYING.

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
                        TWApp::instance()->setDefaultEngineList();
349
349
                        TWApp::instance()->setDefaultPaths();
350
350
                        initPathAndToolLists();
351
 
                        autoHideOutput->setChecked(kDefault_HideConsole);
 
351
                        autoHideOutput->setCurrentIndex(kDefault_HideConsole);
352
352
                        pathsChanged = true;
353
353
                        toolsChanged = true;
354
354
                        break;
559
559
        
560
560
        // Typesetting
561
561
        dlg.initPathAndToolLists();
562
 
        dlg.autoHideOutput->setChecked(settings.value("autoHideConsole", kDefault_HideConsole).toBool());
 
562
        QVariant hideConsoleSetting = settings.value("autoHideConsole", kDefault_HideConsole);
 
563
        // Backwards compatibility to Tw 0.4.0 and before
 
564
        if (hideConsoleSetting.toString() == "true" || hideConsoleSetting.toString() == "false")
 
565
                hideConsoleSetting = (hideConsoleSetting.toBool() ? kDefault_HideConsole : 0);
 
566
        dlg.autoHideOutput->setCurrentIndex(hideConsoleSetting.toInt());
563
567
 
564
568
        // Scripts
565
569
        dlg.allowScriptFileReading->setChecked(settings.value("allowScriptFileReading", false).toBool());
716
720
                if (dlg.toolsChanged)
717
721
                        TWApp::instance()->setEngineList(dlg.engineList);
718
722
                TWApp::instance()->setDefaultEngine(dlg.defaultTool->currentText());
719
 
                settings.setValue("autoHideConsole", dlg.autoHideOutput->isChecked());
 
723
                settings.setValue("autoHideConsole", dlg.autoHideOutput->currentIndex());
720
724
 
721
725
                // Scripts
722
726
                settings.setValue("allowScriptFileReading", dlg.allowScriptFileReading->isChecked());