From ccdd9e6784c1aaee8ebb35f192dae647895c67bc Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 20 Mar 2022 09:58:04 +0100 Subject: rbutil: Fix TTS "waiting for engine" appearing randomly. QProgressDialog shows / hides itself automatically based on the progress value set, so calling hide() directly doesn't prevent the dialog from showing itself. Change the logic to set a value instead. Fixes the progress dialog sometimes appearing in situations where it wasn't used at all. Change-Id: Ifef063f31b7f888bb74f180dea0679e81cc5c8fe --- utils/rbutilqt/encttscfggui.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'utils/rbutilqt/encttscfggui.h') diff --git a/utils/rbutilqt/encttscfggui.h b/utils/rbutilqt/encttscfggui.h index bf9f08a384..109aebd399 100644 --- a/utils/rbutilqt/encttscfggui.h +++ b/utils/rbutilqt/encttscfggui.h @@ -40,10 +40,8 @@ private slots: void accept(void); //! close window and dont save configuration void reject(void); - //! shows a busy dialog. counts calls. - void showBusy(); - //! hides the busy dialog, counts calls - void hideBusy(); + //! show / hide the busy dialog, counts calls + void busyDialog(bool show); private: //! creates all dynamic window content -- cgit v1.2.3