summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/gtkinst.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-10 10:42:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-10 19:57:17 +0000
commit2ee09316dcd09caf5dd13894de484804d3464172 (patch)
treed3e95951f99200d56eb6b06a0a975bdf3587f274 /vcl/unx/gtk3/gtkinst.cxx
parent13810281fe1297833a849bf5adea0be8ea77ca88 (diff)
Related: tdf#152950 assert if this arises anywhere else
Change-Id: I29ff145c84fdd784c3b2fbd6e5860dcac42b597d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145262 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3/gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 0525f8118531..09d2db890612 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -21571,6 +21571,8 @@ private:
void set_active_including_mru(int pos, bool bInteractive)
{
+ assert(gtk_tree_view_get_model(m_pTreeView) && "don't set_active when frozen, set_active after thaw. Note selection doesn't survive a freeze");
+
disable_notify_events();
tree_view_set_cursor(pos);