Skip to content

Commit

Permalink
Solved crash in samples/wx/ListCtrl.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
Henk-Jan van Tuyl committed Jan 2, 2016
1 parent 0d79639 commit eacbf2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/wx/ListCtrl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ onListEvent list eventList
= case eventList of
ListItemSelected idx -> listCtrlGetItemText list idx >>= logMessage . (++) "item selected: "
ListItemDeselected idx -> logMessage ("item de-selected: " ++ show idx)
other -> logMessage ("list control event.")
-- The following line of code is replaced, because this causes a crash on Ubuntu
-- with the message "pure virtual method called"
-- See bug ticket 106, http://sourceforge.net/p/wxhaskell/bugs/106/
-- other -> logMessage ("list control event.")
other -> return ()

0 comments on commit eacbf2f

Please sign in to comment.