Set correct focus in the "rename tab" dialog.

Currently, the OK button has the focus upon startup. After patch, the
user doesn't need to remember if they need to adjust the remote or
local title.

Patch by Sebastian Kühn

http://git.reviewboard.kde.org/r/100642/
This commit is contained in:
Kurt Hindenburg
2011-02-13 21:29:15 -05:00
parent b331ce4a1e
commit acd507e1a5
5 changed files with 33 additions and 0 deletions

View File

@@ -550,6 +550,12 @@ void SessionController::renameSession()
dialog->setTabTitleText(_session->tabTitleFormat(Session::LocalTabTitle));
dialog->setRemoteTabTitleText(_session->tabTitleFormat(Session::RemoteTabTitle));
if (!_session->isRemote()) {
dialog->focusTabTitleText();
} else {
dialog->focusRemoteTabTitleText();
}
QPointer<Session> guard(_session);
int result = dialog->exec();
if (!guard)