~ubuntu-branches/ubuntu/precise/kde4libs/precise-updates

« back to all changes in this revision

Viewing changes to kfile/kdirselectdialog.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-16 13:53:22 UTC
  • mfrom: (1.14.11)
  • Revision ID: package-import@ubuntu.com-20111216135322-joct6gdco90t3koc
Tags: 4:4.7.90-0ubuntu1
* New upstream beta release
* Remove kubuntu_mobile patches, kactivities is split out now and they 
  will be out of date, keep 
  kubuntu-mobile-07-serviceAvailabilityChanged-bool-signal.diff
  for binary compatibility reasons

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    for ( ; it != dirs.end(); ++it )
150
150
    {
151
151
        folderurl.addPath( *it );
152
 
        exists = KIO::NetAccess::exists( folderurl, KIO::NetAccess::DestinationSide, 0 );
153
 
        writeOk = !exists && KIO::NetAccess::mkdir( folderurl, m_parent->topLevelWidget() );
 
152
        exists = KIO::NetAccess::exists( folderurl, KIO::NetAccess::DestinationSide, m_parent );
 
153
        writeOk = !exists && KIO::NetAccess::mkdir( folderurl, m_parent );
154
154
    }
155
155
 
156
156
    if ( exists ) // url was already existent
244
244
    KIO::JobUiDelegate job;
245
245
    if (job.askDeleteConfirmation(KUrl::List() << url, KIO::JobUiDelegate::Trash, KIO::JobUiDelegate::DefaultConfirmation)) {
246
246
        KIO::CopyJob* copyJob = KIO::trash(url);
247
 
        copyJob->ui()->setWindow(this->m_parent);
 
247
        copyJob->ui()->setWindow(m_parent);
248
248
        copyJob->ui()->setAutoErrorHandlingEnabled(true);
249
249
    }
250
250
}
255
255
    KIO::JobUiDelegate job;
256
256
    if (job.askDeleteConfirmation(KUrl::List() << url, KIO::JobUiDelegate::Delete, KIO::JobUiDelegate::DefaultConfirmation)) {
257
257
        KIO::DeleteJob* deleteJob = KIO::del(url);
258
 
        deleteJob->ui()->setWindow(this->m_parent);
 
258
        deleteJob->ui()->setWindow(m_parent);
259
259
        deleteJob->ui()->setAutoErrorHandlingEnabled(true);
260
260
    }
261
261
}
408
408
 
409
409
    if ( comboUrl.isValid() ) {
410
410
       KIO::StatJob *statJob = KIO::stat(comboUrl, KIO::HideProgressInfo);
411
 
       const bool ok = KIO::NetAccess::synchronousRun(statJob, 0);
 
411
       const bool ok = KIO::NetAccess::synchronousRun(statJob, d->m_parent);
412
412
       if (ok && statJob->statResult().isDir()) {
413
413
           return comboUrl;
414
414
       }