diff --git a/kdvi_multipage.cpp b/kdvi_multipage.cpp index 4270d155c..ae82f9f05 100644 --- a/kdvi_multipage.cpp +++ b/kdvi_multipage.cpp @@ -139,7 +139,6 @@ bool KDVIMultiPage::openFile() return r; } - void KDVIMultiPage::jumpToReference(QString reference) { if (window != 0) { @@ -329,8 +328,6 @@ void KDVIMultiPage::preferencesChanged() KConfig *config = instance()->config(); - QString s; - config->reparseConfiguration(); config->setGroup( "kdvi" ); @@ -343,11 +340,11 @@ void KDVIMultiPage::preferencesChanged() if ( makepk != window->makePK() ) window->setMakePK( makepk ); - int showPS = config->readNumEntry( "ShowPS", 1 ); + int showPS = config->readBoolEntry( "ShowPS", true ); if (showPS != window->showPS()) window->setShowPS(showPS); - int showHyperLinks = config->readNumEntry( "ShowHyperLinks", 1 ); + int showHyperLinks = config->readBoolEntry( "ShowHyperLinks", true ); if (showHyperLinks != window->showHyperLinks()) window->setShowHyperLinks(showHyperLinks); diff --git a/optiondialog.cpp b/optiondialog.cpp index 0515326aa..859dd93ea 100644 --- a/optiondialog.cpp +++ b/optiondialog.cpp @@ -93,8 +93,8 @@ OptionDialog::OptionDialog( QWidget *parent, const char *name, bool modal ) mFont.fontPathCheck->setChecked( config->readBoolEntry( "MakePK", true ) ); // Rendering page - mRender.showSpecialCheck->setChecked( config->readNumEntry( "ShowPS", 1 ) ); - mRender.showHyperLinksCheck->setChecked(config->readNumEntry("ShowHyperLinks", 1)); + mRender.showSpecialCheck->setChecked(config->readBoolEntry("ShowPS", true)); + mRender.showHyperLinksCheck->setChecked(config->readBoolEntry("ShowHyperLinks", true)); for(unsigned int i=0; iinsertItem(EditorNames[i]); // Set the proper editor on the "Rendering-Page", try to recognize @@ -123,8 +123,8 @@ void OptionDialog::show() mFont.fontPathCheck->setChecked( config->readBoolEntry( "MakePK", true ) ); // Rendering page - mRender.showSpecialCheck->setChecked( config->readNumEntry( "ShowPS", 1 ) ); - mRender.showHyperLinksCheck->setChecked(config->readNumEntry("ShowHyperLinks", 1)); + mRender.showSpecialCheck->setChecked( config->readBoolEntry( "ShowPS", true)); + mRender.showHyperLinksCheck->setChecked(config->readBoolEntry("ShowHyperLinks", true)); if( isVisible() == false ) showPage(0);