summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-12 15:52:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-12 20:41:57 +0100
commitbd0d23214fe16f1555479f987970939de354514b (patch)
treeb3cbbab1b39af2e9c2047e9d744821e97f9a0f4c /include
parentee96edf8e17471225eb86a63adc096d0441e9e03 (diff)
prefer weld::Window variants
Change-Id: I4938ea338a71e3c83d4d847317ba49b9c7088561 Reviewed-on: https://gerrit.libreoffice.org/69116 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/weld.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 49ae4a249c25..d5006514a8c0 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -330,9 +330,14 @@ public:
WaitObject(weld::Window* pWindow)
: m_pWindow(pWindow)
{
- m_pWindow->set_busy_cursor(true);
+ if (m_pWindow)
+ m_pWindow->set_busy_cursor(true);
+ }
+ ~WaitObject()
+ {
+ if (m_pWindow)
+ m_pWindow->set_busy_cursor(false);
}
- ~WaitObject() { m_pWindow->set_busy_cursor(false); }
};
class Button;