Commit fec6eaf1 authored by Arto Hytönen's avatar Arto Hytönen

kdeedu KIO::NetAccess deprecated--

svn path=/trunk/KDE/kdeedu/kmplot/; revision=701391
parent 169f7aa1
......@@ -338,7 +338,7 @@ bool KmPlotIO::load( const KUrl &url )
QFile f;
if ( !url.isLocalFile() )
{
if( !KIO::NetAccess::exists( url, true, 0 ) )
if( !KIO::NetAccess::exists( url, KIO::NetAccess::SourceSide, 0 ) )
{
KMessageBox::sorry(0,i18n("The file does not exist."));
return false;
......
......@@ -214,7 +214,7 @@ void KParameterEditor::cmdImport_clicked()
if ( url.isEmpty() )
return;
if (!KIO::NetAccess::exists(url,true,this) )
if (!KIO::NetAccess::exists(url, KIO::NetAccess::SourceSide, this) )
{
KMessageBox::sorry(0,i18n("The file does not exist."));
return;
......@@ -284,7 +284,7 @@ void KParameterEditor::cmdExport_clicked()
if ( url.isEmpty() )
return;
if( !KIO::NetAccess::exists( url,false,this ) || KMessageBox::warningContinueCancel( this, i18n( "A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?", url.url()), i18n( "Overwrite File?" ), KGuiItem( i18n( "&Overwrite" ) ) ) == KMessageBox::Continue )
if( !KIO::NetAccess::exists( url, KIO::NetAccess::DestinationSide, this ) || KMessageBox::warningContinueCancel( this, i18n( "A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?", url.url()), i18n( "Overwrite File?" ), KGuiItem( i18n( "&Overwrite" ) ) ) == KMessageBox::Continue )
{
if ( !url.isLocalFile() )
{
......
......@@ -522,7 +522,7 @@ void MainDlg::slotSaveas()
if ( url.isEmpty() )
return;
bool exists = KIO::NetAccess::exists( url,false,m_parent );
bool exists = KIO::NetAccess::exists( url, KIO::NetAccess::DestinationSide, m_parent );
if ( exists )
{
// check if file exists and overwriting is ok.
......@@ -558,7 +558,7 @@ void MainDlg::slotExport()
KUrl url = kfd->selectedUrl();
delete kfd;
bool exists = KIO::NetAccess::exists( url,false,m_parent );
bool exists = KIO::NetAccess::exists( url, KIO::NetAccess::DestinationSide, m_parent );
if ( exists )
{
// check if file exists and overwriting is ok.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment