diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 15:52:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 20:41:57 +0100 |
commit | bd0d23214fe16f1555479f987970939de354514b (patch) | |
tree | b3cbbab1b39af2e9c2047e9d744821e97f9a0f4c /include | |
parent | ee96edf8e17471225eb86a63adc096d0441e9e03 (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.hxx | 9 |
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; |