--- kdebase-3.1.94/kcontrol/konqhtml/htmlopts.h-- 2003-12-09 02:07:41.000000000 -0500 +++ kdebase-3.1.94/kcontrol/konqhtml/htmlopts.h 2003-12-09 02:08:48.000000000 -0500 @@ -60,6 +60,7 @@ private: QCheckBox* m_pFormCompletionCheckBox; QCheckBox* m_pDynamicTabbarHide; QCheckBox* m_pUseTab; + QCheckBox* m_pFileLoadConfirmation; KIntNumInput* m_pMaxFormCompletionItems; QPushButton *advancedTabButton; }; --- kdebase-3.1.94/kcontrol/konqhtml/htmlopts.cpp.warn_when_uploading_file 2003-12-09 02:58:07.000000000 -0500 +++ kdebase-3.1.94/kcontrol/konqhtml/htmlopts.cpp 2003-12-09 03:35:05.000000000 -0500 @@ -117,6 +117,11 @@ KMiscHTMLOptions::KMiscHTMLOptions(KConf lay->addMultiCellWidget( m_pAutoRedirectCheckBox, row, row, 0, 1 ); row++; + m_pFileLoadConfirmation = new QCheckBox( i18n( "Warn when uploading a file" ), this ); + connect(m_pFileLoadConfirmation, SIGNAL(clicked()), this, SLOT(slotChanged())); + lay->addMultiCellWidget( m_pFileLoadConfirmation, row, row, 0, 1 ); + row++; + // More misc @@ -188,7 +193,8 @@ void KMiscHTMLOptions::load() bool underlineLinks = READ_BOOL("UnderlineLinks", DEFAULT_UNDERLINELINKS); bool hoverLinks = READ_BOOL("HoverLinks", true); bool bAutoLoadImages = READ_BOOL( "AutoLoadImages", true ); - QString strAnimations = READ_ENTRY( "ShowAnimations" ).lower(); + bool bFileLoadConfirmation = READ_BOOL( "FileUploadConfirmation", true ); + QString strAnimations = READ_ENTRY( "ShowAnimations" ).lower(); bool bAutoRedirect = m_pConfig->readBoolEntry( "AutoDelayedActions", true ); @@ -197,6 +203,7 @@ void KMiscHTMLOptions::load() m_pAutoLoadImagesCheckBox->setChecked( bAutoLoadImages ); m_pAutoRedirectCheckBox->setChecked( bAutoRedirect ); m_pBackRightClick->setChecked( bBackRightClick ); + m_pFileLoadConfirmation->setChecked( bFileLoadConfirmation ); // we use two keys for link underlining so that this config file // is backwards compatible with KDE 2.0. the HoverLink setting @@ -254,6 +261,8 @@ void KMiscHTMLOptions::save() m_pConfig->writeEntry( "ChangeCursor", cbCursor->isChecked() ); m_pConfig->writeEntry( "AutoLoadImages", m_pAutoLoadImagesCheckBox->isChecked() ); m_pConfig->writeEntry( "AutoDelayedActions", m_pAutoRedirectCheckBox->isChecked() ); + m_pConfig->writeEntry( "FileUploadConfirmation", m_pFileLoadConfirmation->isChecked() ); + switch(m_pUnderlineCombo->currentItem()) { case UnderlineAlways: