|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
|
|
KConfig *KDialogD::theirConfig=NULL;
|
|
|
|
|
TDEConfig *KDialogD::theirConfig=NULL;
|
|
|
|
|
|
|
|
|
|
#define CFG_KEY_DIALOG_SIZE "KDialogDSize"
|
|
|
|
|
#define CFG_TIMEOUT_GROUP "General"
|
|
|
|
@ -132,7 +132,7 @@ static void urls2Local(KURL::List &urls, TQStringList &items, TQWidget *parent)
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
#if KDE_IS_VERSION(3, 5, 0)
|
|
|
|
|
KURL url(KIO::NetAccess::mostLocalURL(*it, parent));
|
|
|
|
|
KURL url(TDEIO::NetAccess::mostLocalURL(*it, parent));
|
|
|
|
|
|
|
|
|
|
if(url.isLocalFile())
|
|
|
|
|
items.append(url.path());
|
|
|
|
@ -170,7 +170,7 @@ KDialogD::KDialogD(TQObject *parent)
|
|
|
|
|
f.close();
|
|
|
|
|
}
|
|
|
|
|
if(!theirConfig)
|
|
|
|
|
theirConfig=new KConfig("kdialogdrc", false, false);
|
|
|
|
|
theirConfig=new TDEConfig("kdialogdrc", false, false);
|
|
|
|
|
|
|
|
|
|
connect(new TQSocketNotifier(itsFd, TQSocketNotifier::Read, this),
|
|
|
|
|
TQT_SIGNAL(activated(int)), this, TQT_SLOT(newConnection()));
|
|
|
|
@ -583,7 +583,7 @@ void KDialogDFileDialog::slotOk()
|
|
|
|
|
good=false;
|
|
|
|
|
}
|
|
|
|
|
else if(itsConfirmOw && KFileDialog::Saving==operationMode())
|
|
|
|
|
good=!KIO::NetAccess::exists(urls.first(), false, this) ||
|
|
|
|
|
good=!TDEIO::NetAccess::exists(urls.first(), false, this) ||
|
|
|
|
|
KMessageBox::Continue==KMessageBox::warningContinueCancel(this,
|
|
|
|
|
i18n("File %1 exists.\nDo you want to replace it?")
|
|
|
|
|
.arg(urls.first().prettyURL()),
|
|
|
|
|