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