Make KConfigDialogs application-modal (instead of window-modal)

remotes/origin/epub-qtextdoc
Fabio D'Urso 13 years ago
parent 4526dd2fd0
commit 84d7eae067
  1. 2
      conf/preferencesdialog.cpp
  2. 2
      part.cpp

@ -24,6 +24,8 @@
PreferencesDialog::PreferencesDialog( QWidget * parent, KConfigSkeleton * skeleton, Okular::EmbedMode embedMode )
: KConfigDialog( parent, "preferences", skeleton )
{
setWindowModality( Qt::ApplicationModal );
m_general = new DlgGeneral( this, embedMode );
m_performance = new DlgPerformance( this );
m_accessibility = new DlgAccessibility( this );

@ -1037,6 +1037,7 @@ void Part::slotGeneratorPreferences( )
// we didn't find an instance of this dialog, so lets create it
KConfigDialog * dialog = new KConfigDialog( m_pageView, "generator_prefs", Okular::Settings::self() );
if( m_embedMode == ViewerWidgetMode )
{
dialog->setCaption( i18n( "Configure Viewer Backends" ) );
@ -1048,6 +1049,7 @@ void Part::slotGeneratorPreferences( )
m_document->fillConfigDialog( dialog );
dialog->setWindowModality( Qt::ApplicationModal );
dialog->show();
}

Loading…
Cancel
Save