bugfix: dvi options could not be changed

svn path=/trunk/kdegraphics/kdvi/; revision=195096
remotes/origin/kdvi-3.2
Stefan Kebekus 24 years ago
parent b415e9c72c
commit d8d6a6fca7
  1. 7
      kdvi_multipage.cpp
  2. 8
      optiondialog.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);

@ -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; i<EditorNames.count(); i++)
mRender.editorChoice->insertItem(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);

Loading…
Cancel
Save