Commit 288795bd authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1345: hide the overview dialog if no image need it

parent b27ec1cd
......@@ -234,14 +234,18 @@ ImportImagesDialog
if( builder->GetOverviewsCount()>0 )
builder->SetBypassEnabled( true );
else
else if (count>1)
{
flags |= Qt::ItemIsEnabled;
builder->SetBypassEnabled( count<=1 );
builder->SetBypassEnabled( false );
++ m_EffectiveCount;
}
else
{
builder->SetBypassEnabled(true);
}
builder->SetResolutionFactor( 2 );
builder->SetNbResolutions( count );
......
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