Commit 0733018f authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen
Browse files

qt: fix qt-error-dialogs inherit type

Running the (3.0) code with --no-qt-error-dialogs asserts.
parent 66e297e7
Pipeline #147960 passed with stage
in 13 minutes and 10 seconds
......@@ -51,7 +51,7 @@ ErrorsDialog::ErrorsDialog( qt_intf_t *_p_intf )
messages->setReadOnly( true );
messages->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
stopShowing = new QCheckBox( qtr( "Hide future errors" ) );
stopShowing->setChecked( var_InheritInteger( p_intf, "qt-error-dialogs" ) != 0 );
stopShowing->setChecked( var_InheritBool( p_intf, "qt-error-dialogs" ) );
layout->addWidget( messages, 0, 0, 1, 3 );
layout->addWidget( stopShowing, 1, 0 );
......@@ -80,7 +80,7 @@ void ErrorsDialog::add( bool error, const QString& title, const QString& text )
messages->setTextColor( "black" );
messages->insertPlainText( text + QString( "\n" ) );
messages->ensureCursorVisible();
if ( var_InheritInteger( p_intf, "qt-error-dialogs" ) != 0 )
if ( var_InheritBool( p_intf, "qt-error-dialogs" ) )
show();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment