Skip to content
Snippets Groups Projects
Commit ca3552d8 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1497: don't set initial path on disabled widgets

parent 7c76984d
Branches
Tags
No related merge requests found
......@@ -756,18 +756,21 @@ SetupOutputFilename( W* widget,
const QString& prefix,
const QString& extension )
{
QString id( QUuid::createUuid().toString() );
if(widget->isEnabled())
{
QString id( QUuid::createUuid().toString() );
id.replace( QRegExp( "[\\{|\\}]" ), "" );
id.replace( QRegExp( "[\\{|\\}]" ), "" );
if( prefix!=NULL )
id.prepend( "_" );
if( prefix!=NULL )
id.prepend( "_" );
widget->SetFileName(
dir.absoluteFilePath( prefix + id + extension )
);
widget->SetFileName(
dir.absoluteFilePath( prefix + id + extension )
);
widget->UpdateGUI();
widget->UpdateGUI();
}
}
/*****************************************************************************/
......@@ -776,9 +779,12 @@ void
SetupOutputFilename( W * widget,
const QDir & dir )
{
widget->SetFileName( dir.path() );
if(widget->isEnabled())
{
widget->SetFileName( dir.path() );
widget->UpdateGUI();
widget->UpdateGUI();
}
}
/*******************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment