//Resize the views, set their captions and apply visual parameters.
QPtrVector<SUIT_ViewWindow> views = vm->getViews();
- for (int i = 0, j = 0; i<viewCount; i++, j++) {
+ for (int i = 0, j = 0; i<viewCount; i++, j+=2) {
viewWin = views[i];
if ( !viewWin )
continue;
// wait untill the window is really shown. This step fixes MANY bugs..
- while ( !viewWin->isVisible() )
+ while ( !vm->isVisible() )
qApp->processEvents();
viewWin->setCaption(ip->getValue(viewerEntry, j).c_str());