Avoid initializing progress bar if called from unit test framework

p4#: 19042
This commit is contained in:
Magne Sjaastad 2012-10-05 15:58:06 +02:00
parent f144134701
commit 03ede069c1

View File

@ -263,6 +263,8 @@ static bool isWrongThread()
//--------------------------------------------------------------------------------------------------
void ProgressInfoStatic::start(int maxProgressValue, const QString& title)
{
if (!qApp) return;
if (isWrongThread()) return;
if (!maxProgressStack().size())