Commit 474f8390 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: messages: fix visibility warning

parent 89f039dd
......@@ -38,12 +38,12 @@
#include <QPushButton>
#include <QTimer>
DialogHandler::DialogHandler (intf_thread_t *intf, QObject *_parent)
: QObject( _parent ), intf (intf),
critical (VLC_OBJECT(intf), "dialog-critical"),
login (VLC_OBJECT(intf), "dialog-login"),
question (VLC_OBJECT(intf), "dialog-question"),
progressBar (VLC_OBJECT(intf), "dialog-progress-bar")
DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent)
: QObject( _parent ), intf (p_intf),
critical (VLC_OBJECT(p_intf), "dialog-critical"),
login (VLC_OBJECT(p_intf), "dialog-login"),
question (VLC_OBJECT(p_intf), "dialog-question"),
progressBar (VLC_OBJECT(p_intf), "dialog-progress-bar")
{
var_Create (intf, "dialog-error", VLC_VAR_ADDRESS);
var_AddCallback (intf, "dialog-error", error, this);
......
......@@ -86,9 +86,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
/* Buttons and general layout */
ui.saveLogButton->setToolTip( qtr( "Saves all the displayed logs to a file" ) );
int verbosity = var_InheritInteger( p_intf, "verbose" );
vlc_atomic_set( &this->verbosity, verbosity );
ui.verbosityBox->setValue( verbosity );
int i_verbosity = var_InheritInteger( p_intf, "verbose" );
changeVerbosity( i_verbosity );
ui.verbosityBox->setValue( i_verbosity );
char *objs = var_InheritString( p_intf, "verbose-objects" );
if( objs != NULL )
......@@ -130,9 +130,9 @@ MessagesDialog::~MessagesDialog()
vlc_Unsubscribe( sub );
};
void MessagesDialog::changeVerbosity( int verbosity )
void MessagesDialog::changeVerbosity( int i_verbosity )
{
vlc_atomic_set( &this->verbosity, verbosity );
vlc_atomic_set( &this->verbosity, i_verbosity );
}
void MessagesDialog::updateConfig()
......
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