on xenial help sign in
strings can't be undefined
commit081259a85ff06903e06e59583b9a7d81e2512aa8 authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 8 Jul 2015, 09:22 (11 years ago) parent86ca82a
1 file changed+4−3
qml/Dash/GenericScopeView.qml+4−3
qml/Dash/GenericScopeView.qml+4−3
@@ -88,7 +88,7 @@ FocusScope {
8888 scopeView.maybePreviewIndex = undefined;
8989 scopeView.maybePreviewResultsModel = undefined;
9090 scopeView.maybePreviewLimitedCategoryItemCount = undefined;
91− scopeView.maybePreviewCategoryId = undefined;
91+ scopeView.maybePreviewCategoryId = "";
9292
9393 if (scope.preview(result, categoryId)) {
9494 openPreview(index, resultsModel, limitedCategoryItemCount, categoryId);
@@ -154,15 +154,16 @@ FocusScope {
154154 onHideDash: subPageLoader.closeSubPage()
155155 onPreviewRequested: { // (QVariant const& result)
156156 if (result === scopeView.maybePreviewResult) {
157− scopeView.maybePreviewResult = undefined;
158157 openPreview(scopeView.maybePreviewIndex,
159158 scopeView.maybePreviewResultsModel,
160159 scopeView.maybePreviewLimitedCategoryItemCount,
161160 scopeView.maybePreviewCategoryId);
161+
162+ scopeView.maybePreviewResult = undefined;
162163 scopeView.maybePreviewIndex = undefined;
163164 scopeView.maybePreviewResultsModel = undefined;
164165 scopeView.maybePreviewLimitedCategoryItemCount = undefined;
165− scopeView.maybePreviewCategoryId = undefined;
166+ scopeView.maybePreviewCategoryId = "";
166167 }
167168 }
168169 }