From 0d7d9b0424c230266bbad2a15e1aa0cca8fcd735 Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Sun, 30 Apr 2017 16:09:26 -0400 Subject: [PATCH] Don't show the properties page (in library pane) for interactivities, applications and animations --- src/gui/UBFeaturesWidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/UBFeaturesWidget.cpp b/src/gui/UBFeaturesWidget.cpp index fe3520c7..b826ed02 100644 --- a/src/gui/UBFeaturesWidget.cpp +++ b/src/gui/UBFeaturesWidget.cpp @@ -174,7 +174,12 @@ void UBFeaturesWidget::currentSelected(const QModelIndex ¤t) // } else if (feature.getType() == FEATURE_SEARCH) { // centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturesWebView); - } else { + } + // Don't show the properties page for interactivities, applications and animations + else if (feature.getType() != FEATURE_INTERACTIVE + && feature.getType() != FEATURE_INTERNAL + && feature.getType() != FEATURE_FLASH) + { centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturePropertiesList); mActionBar->setCurrentState( IN_PROPERTIES ); }