]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
removed src/gtk/eggtrayicon.h
[wxWidgets.git] / src / generic / choicdgg.cpp
index 6e591c78cd370f518078f969e82b20e1e51db83a..bb2a38dc5636bb1df7ce1cc0ee5db4b276c5759d 100644 (file)
@@ -218,8 +218,9 @@ size_t wxGetMultipleChoices(wxArrayInt& selections,
 {
     wxMultiChoiceDialog dialog(parent, message, caption, n, choices);
 
-    if ( !selections.IsEmpty() )
-        dialog.SetSelections(selections);
+    // call this even if selections array is empty and this then (correctly)
+    // deselects the first item which is selected by default
+    dialog.SetSelections(selections);
 
     if ( dialog.ShowModal() == wxID_OK )
         selections = dialog.GetSelections();