mirror of
https://github.com/KDE/konsole.git
synced 2026-02-01 02:41:34 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user