Reverted commit 53e36f6d (master), c8ff908d (r14.0.x)

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 8 years ago
parent 7502543922
commit 1d036d62d8

@ -334,20 +334,6 @@ void KFileDialog::slotOk()
{ {
kdDebug(tdefile_area) << "slotOK\n"; kdDebug(tdefile_area) << "slotOK\n";
// If the user typed in the path field without confirming it with ENTER,
// "ops" will most likely point do a different folder. Make sure the folder exists,
// then update "ops" accordingly and only if necessary
TQDir savedir = TQDir(d->pathCombo->lineEdit()->text());
if (!savedir.exists())
{
KMessageBox::information(this, i18n("The selected folder does not exists. Please select an existing one."));
return;
}
if (ops->url().path(1) != KURL(savedir.absPath()).path(1))
{
setURL(savedir.absPath());
}
// a list of all selected files/directories (if any) // a list of all selected files/directories (if any)
// can only be used if the user didn't type any filenames/urls himself // can only be used if the user didn't type any filenames/urls himself
const KFileItemList *items = ops->selectedItems(); const KFileItemList *items = ops->selectedItems();
@ -999,8 +985,6 @@ void KFileDialog::init(const TQString& startDir, const TQString& filter, TQWidge
this, TQT_SLOT( enterURL( const KURL& ) )); this, TQT_SLOT( enterURL( const KURL& ) ));
connect( d->pathCombo, TQT_SIGNAL( returnPressed( const TQString& )), connect( d->pathCombo, TQT_SIGNAL( returnPressed( const TQString& )),
this, TQT_SLOT( enterURL( const TQString& ) )); this, TQT_SLOT( enterURL( const TQString& ) ));
connect( d->pathCombo, TQT_SIGNAL( activated( const TQString& )),
this, TQT_SLOT( enterURL( const TQString& ) ));
TQString whatsThisText; TQString whatsThisText;

Loading…
Cancel
Save