kdepim KIO::NetAccess::exists deprecated--

svn path=/trunk/KDE/kdepim/; revision=701396
wilder-work
Arto Hytnen 19 years ago
parent f1ee1a5928
commit a63fcb8c6b
  1. 6
      kmcommands.cpp
  2. 2
      kmkernel.cpp

@ -633,7 +633,7 @@ KMCommand::Result KMUrlSaveCommand::execute()
parentWidget() );
if ( saveUrl.isEmpty() )
return Canceled;
if ( KIO::NetAccess::exists( saveUrl, false, parentWidget() ) )
if ( KIO::NetAccess::exists( saveUrl, KIO::NetAccess::DestinationSide, parentWidget() ) )
{
if (KMessageBox::warningContinueCancel(0,
i18n("<qt>File <b>%1</b> exists.<br>Do you want to replace it?</qt>",
@ -2493,7 +2493,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
}
if ( KIO::NetAccess::exists( curUrl, false, parentWidget() ) ) {
if ( KIO::NetAccess::exists( curUrl, KIO::NetAccess::DestinationSide, parentWidget() ) ) {
if ( KMessageBox::warningContinueCancel( parentWidget(),
i18n( "A file named %1 already exists. Do you want to overwrite it?" ,
curUrl.fileName() ),
@ -3150,7 +3150,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
// return true if we should proceed, false if we should abort
static bool checkOverwrite( const KUrl& url, bool& overwrite, QWidget* w )
{
if ( KIO::NetAccess::exists( url, false /*dest*/, w ) ) {
if ( KIO::NetAccess::exists( url, KIO::NetAccess::DestinationSide /*dest*/, w ) ) {
if ( KMessageBox::Cancel ==
KMessageBox::warningContinueCancel(
w,

@ -1693,7 +1693,7 @@ bool KMKernel::transferMail( QString & destinationDir )
// disabled for now since moving fails in certain cases (e.g. if symbolic links are involved)
const QString kmailName = KGlobal::mainComponent().aboutData()()->programName();
QString msg;
if ( KIO::NetAccess::exists( destinationDir, true, 0 ) ) {
if ( KIO::NetAccess::exists( destinationDir, KIO::NetAccess::SourceSide, 0 ) ) {
// if destinationDir exists, we need to warn about possible
// overwriting of files. otherwise, we don't have to
msg = ki18nc( "%1-%3 is the application name, %4-%7 are folder path",

Loading…
Cancel
Save