Initialise CServerDlg::bSystemTrayIconAvaialbe earlier.
The call to setupUi ends up changing the window title, which invokes changeEvent; this avoids an uninitialised read there.
This commit is contained in:
parent
7ee8f6264a
commit
773e274098
1 changed files with 3 additions and 3 deletions
|
@ -37,6 +37,9 @@ CServerDlg::CServerDlg ( CServer* pNServP,
|
||||||
BitmapSystemTrayInactive ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreyArrow.png" ) ),
|
BitmapSystemTrayInactive ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreyArrow.png" ) ),
|
||||||
BitmapSystemTrayActive ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenArrow.png" ) )
|
BitmapSystemTrayActive ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenArrow.png" ) )
|
||||||
{
|
{
|
||||||
|
// check if system tray icon can be used
|
||||||
|
bSystemTrayIconAvaialbe = SystemTrayIcon.isSystemTrayAvailable();
|
||||||
|
|
||||||
setupUi ( this );
|
setupUi ( this );
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,9 +146,6 @@ CServerDlg::CServerDlg ( CServer* pNServP,
|
||||||
+ tr ( "During a recording session, the button can be used to start a new recording." ) );
|
+ tr ( "During a recording session, the button can be used to start a new recording." ) );
|
||||||
|
|
||||||
|
|
||||||
// check if system tray icon can be used
|
|
||||||
bSystemTrayIconAvaialbe = SystemTrayIcon.isSystemTrayAvailable();
|
|
||||||
|
|
||||||
// init system tray icon
|
// init system tray icon
|
||||||
if ( bSystemTrayIconAvaialbe )
|
if ( bSystemTrayIconAvaialbe )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue