summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/inc/salvtables.hxx4
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index d6968e36d00c..00bb670ffe54 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -734,6 +734,10 @@ public:
virtual void set_active(int pos) override
{
+ assert(m_xComboBox->IsUpdateMode()
+ && "don't set_active when frozen, set_active after thaw. Note selection doesn't "
+ "survive a "
+ "freeze");
if (pos == -1)
{
m_xComboBox->SetNoSelection();
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);