[vlc-commits] [Git][videolan/vlc][master] qt: fix qt-error-dialogs inherit type

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Oct 14 09:31:22 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
0733018f by Steve Lhomme at 2021-10-14T09:12:16+00:00
qt: fix qt-error-dialogs inherit type

Running the (3.0) code with --no-qt-error-dialogs asserts.

- - - - -


1 changed file:

- modules/gui/qt/dialogs/errors/errors.cpp


Changes:

=====================================
modules/gui/qt/dialogs/errors/errors.cpp
=====================================
@@ -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();
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0733018f8a5346e711dc549d1ba9a46e25af9c43

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0733018f8a5346e711dc549d1ba9a46e25af9c43
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list