on xenial help sign in
Provide fallbacks for default renderer.

Approved by PS Jenkins bot, Ying-Chun Liu.

commit4e663be7f1af9b5dda8571d71dd3ee69d221769b authorMichal Hruby <michal.mhr@gmail.com> dateThu 25 Jul 2013, 21:56 (13 years ago) parent25a94b7e02c154
1 file changed+9
Dash/GenericScopeView.qml+9
Dash/GenericScopeView.qml+9
@@ -114,7 +114,16 @@ ScopeView {
114114 }
115115 }
116116
117+ function getDefaultRendererId(contentType) {
118+ switch (contentType) {
119+ default: return "grid";
120+ }
121+ }
122+
117123 function getRenderer(rendererId, contentType) {
124+ if (rendererId == "default") {
125+ rendererId = getDefaultRendererId(contentType);
126+ }
118127 switch (rendererId) {
119128 case "grid": {
120129 switch (contentType) {