Fix OSX warning

This commit is contained in:
David Rowe 2017-03-02 18:45:42 +13:00
parent 62f91b4af6
commit b592205f7e

View file

@ -5856,7 +5856,7 @@ void Application::addAssetToWorldFromURL(QString url) {
void Application::showDialog(const QString& desktopURL, const QString& tabletURL, const QString& name) const {
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
if (tablet->getToolbarMode() || !tablet->getTabletRoot() && !isHMDMode()) {
if (tablet->getToolbarMode() || (!tablet->getTabletRoot() && !isHMDMode())) {
DependencyManager::get<OffscreenUi>()->show(desktopURL, name);
} else {
tablet->loadQMLSource(tabletURL);