bool ret = screens_[orientation]->load(data, reader);
- if(ret && screens_.size() == 1)
- {
- currentOrientation_ = orientation;
- }
-
if(ret)
{
loadedScreens_.insert(orientation);
+
+ if(loadedScreens_.size() == 1)
+ {
+ currentOrientation_ = orientation;
+ setCurrentWidget(screens_[orientation]);
+ }
}
return ret;
{
if(screens_.find(o) != screens_.end())
{
+ currentOrientation_ = o;
setCurrentWidget(screens_[o]);
screens_[o]->reArrange();
- screens_[o]->forceRepaint();
- currentOrientation_ = o;
+
+ if(o == LANDSCAPE)
+ {
+ screens_[o]->forceRepaint();
+ }
}
}
}