From c6de8acfd02b24dead5a1ff815c3f167a578a48b Mon Sep 17 00:00:00 2001 From: allenforsythe Date: Fri, 16 May 2003 10:01:09 +0000 Subject: Fixed edit transfer and edit account/view account bugs --- (limited to 'noncore/apps/qashmoney/accountdisplay.cpp') diff --git a/noncore/apps/qashmoney/accountdisplay.cpp b/noncore/apps/qashmoney/accountdisplay.cpp index 46ab1db..b2c0838 100755 --- a/noncore/apps/qashmoney/accountdisplay.cpp +++ b/noncore/apps/qashmoney/accountdisplay.cpp @@ -413,6 +413,18 @@ void AccountDisplay::editAccount () { account->updateAccount ( accountname->text(), accountdescription->text(), currencybox->currencybox->currentText(), accountid ); account->displayAccounts ( listview ); + + // Try and select the same account that was just edited + QListViewItemIterator it ( listview ); + for ( ; it.current(); ++it ) + { + if ( it.current()->text ( 0 ) == accountname->text() ) + { + listview->setSelected ( it.current(), TRUE ); + return; + } + } + maintabs->setTabEnabled ( tab2, FALSE ); } } } -- cgit v0.9.0.2