SVN commit 938011 by dfaure: Backport r938010: focus the lineedit by default (for renaming), rather than the Cancel button. BUG: 182363 M +4 -3 renamedialog.cpp M +1 -1 renamedialog.h --- branches/KDE/4.2/kdelibs/kio/kio/renamedialog.cpp #938010:938011 @@ -1,7 +1,7 @@ /* This file is part of the KDE libraries Copyright (C) 2000 Stephan Kulow - David Faure - 2001,2006 Holger Freyther + 1999 - 2008 David Faure + 2001, 2006 Holger Freyther This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -293,9 +293,10 @@ layout2->addWidget( d->m_pLineEdit ); if ( d->bRename ) { const QString fileName = d->dest.fileName(); - d->m_pLineEdit->setText( KIO::decodeFileName( fileName ) ); + d->m_pLineEdit->setText( KIO::decodeFileName( fileName ) ); connect(d->m_pLineEdit, SIGNAL(textChanged(const QString &)), SLOT(enableRenameButton(const QString &))); + d->m_pLineEdit->setFocus(); } else { d->m_pLineEdit->hide(); } --- branches/KDE/4.2/kdelibs/kio/kio/renamedialog.h #938010:938011 @@ -1,6 +1,6 @@ /* This file is part of the KDE libraries Copyright (C) 2000 Stephan Kulow - David Faure + 1999 - 2008 David Faure 2001 Holger Freyther This library is free software; you can redistribute it and/or