saveURL=Info::makeValidTeXURL(saveURL,m_ki->extensions()->isTexFile(saveURL),false);// don't check for file existence
saveURL=Info::makeValidTeXURL(saveURL,m_ki->extensions()->isTexFile(saveURL),false);// don't check for file existence
}
}
if(KIO::NetAccess::exists(saveURL,true,kapp->mainWidget()))// check for writing possibility
if(TDEIO::NetAccess::exists(saveURL,true,kapp->mainWidget()))// check for writing possibility
{
{
intr=KMessageBox::warningContinueCancel(m_ki->parentWidget(),i18n("A file with the name \"%1\" exists already. Do you want to overwrite it ?").arg(saveURL.fileName()),i18n("Overwrite File ?"),KGuiItem(i18n("&Overwrite")),TQString());
intr=KMessageBox::warningContinueCancel(m_ki->parentWidget(),i18n("A file with the name \"%1\" exists already. Do you want to overwrite it ?").arg(saveURL.fileName()),i18n("Overwrite File ?"),KGuiItem(i18n("&Overwrite")),TQString());
KMessageBox::error(0,i18n("Could not find a folder to save %1 to.\nCheck whether you have a .kde folder with write permissions in your home folder.").arg(fileName));
KMessageBox::error(0,i18n("Could not find a folder to save %1 to.\nCheck whether you have a .kde folder with write permissions in your home folder.").arg(fileName));