From 2f159db165c640c0279225a841306af24f76e40f Mon Sep 17 00:00:00 2001 From: sniperbeamer Date: Sat, 9 Jan 2010 13:24:04 +0000 Subject: [PATCH] Switch focus to new entry (Bug #2899867, #2928843) git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@360 b624d157-de02-0410-bad0-e51aec6abb33 --- src/lib/EntryView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/EntryView.cpp b/src/lib/EntryView.cpp index af15afc..f7d9fc4 100644 --- a/src/lib/EntryView.cpp +++ b/src/lib/EntryView.cpp @@ -389,6 +389,7 @@ void KeepassEntryView::OnNewEntry(){ emit fileModified(); if (header()->isSortIndicatorShown()) sortByColumn(header()->sortIndicatorSection(), header()->sortIndicatorOrder()); + setCurrentItem(Items.back()); } }