Revision: 7452
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7452&view=rev
Author:   vadz
Date:     2008-05-02 16:35:01 -0700 (Fri, 02 May 2008)

Log Message:
-----------
select the previous entry in the wxAdbExpandDialog when the current one is 
deleted

Modified Paths:
--------------
    trunk/M/src/adb/AdbDialogs.cpp

Modified: trunk/M/src/adb/AdbDialogs.cpp
===================================================================
--- trunk/M/src/adb/AdbDialogs.cpp      2008-05-02 22:02:08 UTC (rev 7451)
+++ trunk/M/src/adb/AdbDialogs.cpp      2008-05-02 23:35:01 UTC (rev 7452)
@@ -513,7 +513,14 @@
 
    // first remove it from the listbox
    m_listbox->Delete(n);
+   const size_t countLbox = m_listbox->GetCount();
+   if ( n < countLbox )
+      m_listbox->Select(n);
+   else if ( countLbox )
+      m_listbox->Select(countLbox - 1);
+   //else: no more items left
 
+
    // now remove it from the internal data as well
    AdbEntry *entry;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to