Den 2017-07-06 kl. 10:34, skrev Daniel Boles:A weak pointer to the TreeModel could be an alternative. It would not call a function to inform you when the TreeModel is being deleted, but you can check if the TreeModel still exists before you access its row. In gtkmm-3, use Glib::WeakRef, in gtkmm-4, where Glib::RefPtr is a std::shared_ptr, use std::weak_ptr. |